[mapguide-commits] r9833 - trunk/MgDev/Doc/samples/ol2samples/mvt
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Mon Apr 12 04:47:01 PDT 2021
Author: jng
Date: 2021-04-12 04:47:00 -0700 (Mon, 12 Apr 2021)
New Revision: 9833
Modified:
trunk/MgDev/Doc/samples/ol2samples/mvt/index.html
Log:
#2834: Update MVT example to use ol.js under viewerfiles
Modified: trunk/MgDev/Doc/samples/ol2samples/mvt/index.html
===================================================================
--- trunk/MgDev/Doc/samples/ol2samples/mvt/index.html 2021-04-01 17:54:26 UTC (rev 9832)
+++ trunk/MgDev/Doc/samples/ol2samples/mvt/index.html 2021-04-12 11:47:00 UTC (rev 9833)
@@ -2,7 +2,7 @@
<head>
<title>Sheboygan map as Mapbox Vector Tiles</title>
- <link rel="stylesheet" href="../assets/ol.css" />
+ <link rel="stylesheet" href="../../viewerfiles/ol.css" />
<style type="text/css">
#error {
color: red;
@@ -24,7 +24,7 @@
padding-top: 20px;
}
</style>
- <script type="text/javascript" src="../assets/ol-debug.js"></script>
+ <script type="text/javascript" src="../../viewerfiles/ol.js"></script>
<script type="text/javascript" src="../assets/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
@@ -292,13 +292,6 @@
layers: [
new ol.layer.Tile({
source: new ol.source.OSM({
- attributions: [
- new ol.Attribution({
- html: 'Tiles © <a href="http://www.openstreetmap.org/">' +
- 'OpenStreetMap</a>'
- }),
- ol.source.OSM.ATTRIBUTION
- ],
url: 'http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png'
})
}),
@@ -309,7 +302,7 @@
// This is needed for us to support labelling: https://github.com/openlayers/openlayers/issues/5758
featureClass: ol.Feature
}),
- tileGrid: ol.tilegrid.createXYZ({ maxZoom: 19, tileSize: [4096, 4096] }),
+ //tileGrid: ol.tilegrid.createXYZ({ maxZoom: 19, tileSize: [4096, 4096] }),
url: mapAgentUrl + "?OPERATION=GETTILEIMAGE&VERSION=1.2.0&CLIENTAGENT=OpenLayers&USERNAME=Anonymous&MAPDEFINITION=Library://Samples/Sheboygan/TileSets/SheboyganMVT.TileSetDefinition&BASEMAPLAYERGROUPNAME=Base+Layer+Group&TILECOL={y}&TILEROW={x}&SCALEINDEX={z}",
projection: "EPSG:3857"
}),
More information about the mapguide-commits
mailing list