1234567891011121314151617181920212223242526272829303132 |
- <!--********************************************************************
- * Copyright© 2000 - 2021 SuperMap Software Co.Ltd. All rights reserved.
- *********************************************************************-->
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <title data-i18n="resources.title_changchunMap"></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" exclude="iclient-classic" src="../../dist/classic/include-classic.js"></script>
- <script type="text/javascript">
- var map, layer, host = window.isLocal ? window.server : "https://iserver.supermap.io";
- url = host + "/iserver/services/map-changchun/rest/maps/长春市区图";
- map = new SuperMap.Map("map", {
- controls: [
- new SuperMap.Control.Navigation(),
- new SuperMap.Control.Zoom()]
- });
- map.addControl(new SuperMap.Control.MousePosition());
- layer = new SuperMap.Layer.TiledDynamicRESTLayer("China", url, null, {maxResolution: "auto"});
- layer.events.on({"layerInitialized": addLayer});
- function addLayer() {
- map.addLayer(layer);
- map.setCenter(new SuperMap.LonLat(5105, -3375), 0);
- }
- </script>
- </body>
- </html>
|