123456789101112131415161718192021222324252627282930313233343536 |
- <!--********************************************************************
- * Copyright© 2000 - 2021 SuperMap Software Co.Ltd. All rights reserved.
- *********************************************************************-->
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title data-i18n="resources.title_vectorTileLayerMVT4326"></title>
- <script type="text/javascript" src="../js/include-web.js"></script>
- </head>
- <body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
- <div id="map" style="margin:0 auto;width: 100%;height: 100%"></div>
- <script type="text/javascript" src="../../dist/leaflet/include-leaflet.js"></script>
- <script type="text/javascript">
- var host = window.isLocal ? window.server : "https://iserver.supermap.io";
- var map, vectorLayer,
- url = host + "/iserver/services/map-world/rest/maps/世界地图_Gray";
- map = L.map('map', {
- crs: L.CRS.EPSG4326,
- center: [0, 0],
- maxZoom: 15,
- zoom: 1
- });
- vectorLayer = L.supermap.tiledVectorLayer(url, {
- tileSize: 512,
- format: L.supermap.VectorTileFormat.MVT,
- cacheEnabled: true,
- returnAttributes: true,
- attribution: "Tile Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span> with <span>© <a href='https://iclient.supermap.io' target='_blank'>SuperMap iClient</a></span>"
- }).addTo(map);
- </script>
- </body>
- </html>
|