-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from oliverheilig/master
Fix VirtualLayere
- Loading branch information
Showing
3 changed files
with
10 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,6 @@ | |
|
||
<body> | ||
<div id="map" /> | ||
<script src="https://unpkg.com/[email protected]/dist/jquery.min.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/jquery.min.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/NonTiledLayer.js"></script> | ||
|
@@ -68,12 +67,12 @@ | |
|
||
// add dymamic tile layer | ||
var myTileLayerUrl = 'SharpMapTilesHandler.ashx?x={x}&y={y}&z={z}&layers=', | ||
sharpMapTileLayer = new L.TileLayer(myTileLayerUrl, { | ||
sharpMapTileLayer = L.tileLayer(myTileLayerUrl, { | ||
maxZoom: 19, minZoom: 0, zIndex: 100 | ||
}); | ||
|
||
// add dynamic overlay layer | ||
var sharpMapOverlayLayer = new L.NonTiledLayer.WMS('SharpMapOverlayHandler.ashx', { | ||
var sharpMapOverlayLayer = L.nonTiledLayer.wms('SharpMapOverlayHandler.ashx', { | ||
zIndex: 1, | ||
minZoom: 0, maxZoom: 19, | ||
opacity: 1.0, | ||
|
@@ -186,7 +185,7 @@ | |
subdomains: '1234' | ||
}); | ||
|
||
var foreground = new L.NonTiledLayer.WMS(url + '?xtok=' + token, { | ||
var foreground = L.nonTiledLayer.wms(url + '?xtok=' + token, { | ||
zIndex: 0, | ||
minZoom: 0, maxZoom:19, | ||
opacity: 1.0, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// this is a time-limited demo token. | ||
// You need your own xServer-internet token for your application! | ||
var token = 'CD71BDAA-681B-4438-B8A8-6DE9DE7F11C2'; | ||
var token = '1D00DA08-6381-4E1E-8913-0243D445D6E0'; |