<!--********************************************************************* Copyright© 2000 - 2026 SuperMap Software Co.Ltd. All rights reserved.*********************************************************************--><!DOCTYPE html><html><head><meta charset="utf-8"><title data-i18n="resources.title_plotSymbol"></title><style type="text/css">head, body {margin: 0;overflow: hidden;background: #fff;width: 100%;height: 100%}#map {position: absolute;left: 250px;right: 0px;height: 100%;}#toolbar {position: absolute;top: 50px;right: 10px;width: 235px;text-align: center;z-index: 100;border-radius: 4px;}#toolbar .panel-title {font-size: 16px;color: white;}#toolbar .panel-body {padding: 0 20px 16px}#plotPanel {position: absolute;float: left;background: #ffffff;width: 250px;height: 100%;border: 1px solid #3473b7;z-index: 100;}.panel-title {color: #ffffff;font-size: 16px;}.panel-body {border-bottom-left-radius: 3px;border-bottom-right-radius: 3px;}.btn {margin-top: 15px;margin-bottom: 15px;}</style></head><body><div id="toolbar" class="panel panel-primary"><div class='panel-heading'><h5 class='panel-title text-center' data-i18n="resources.title_plotSymbol"></h5></div><div class='panel-body content'><input type="button" class="btn btn-default" data-i18n="[value]resources.btn_cancelMarker"onclick="PlottingDrawCancel()"/> <input type="button" class="btn btn-default" data-i18n="[value]resources.btn_clearPlot"onclick="PlottingClear()"/></div></div><div id="plotPanel" data-i18n="[title]resources.text_drawPanel"></div><div id="map"></div><script type="text/javascript" include="bootstrap" src="../js/include-web.js"></script><script type="text/javascript" exclude="iclient-classic" include="iclient8c-plot,PlottingPanel"src="../../dist/classic/include-classic.js"></script><script>var plottingLayer, plottingEdit, layer, drawGraphicObject, map, plotPanel;var host = window.isLocal ? window.server : "https://iserver.supermap.io";var mapurl = host + "/iserver/services/map-world/rest/maps/World";var serverUrl = host + "/iserver/services/plot-jingyong/rest/plot/";init();function init() {map = new SuperMap.Map("map", {controls: [new SuperMap.Control.ScaleLine(),new SuperMap.Control.Zoom(),new SuperMap.Control.Navigation({dragPanOptions: {enableKinetic: true}})]});map.addControl(new SuperMap.Control.LayerSwitcher(), new SuperMap.Pixel(42, 80));layer = new SuperMap.Layer.TiledDynamicRESTLayer("World", mapurl, {transparent: true,cacheEnabled: true}, {maxResolution: "auto"});layer.events.on({"layerInitialized": addLayer});plottingLayer = new SuperMap.Layer.PlottingLayer("标绘图层", serverUrl);//空间分析服务地址:目前使用的是服务器默认空间分析地址,可更换成实际使用的空间分析服务地址//plottingLayer.spatialAnalystUrl = host + "/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst";plottingLayer.style = {fillColor: "#66cccc",fillOpacity: 0.4,strokeColor: "#66cccc",strokeOpacity: 1,strokeWidth: 3,pointRadius: 6};//态势标绘编辑plottingEdit = new SuperMap.Control.PlottingEdit();// 绘制标号;drawGraphicObject = new SuperMap.Control.DrawFeature(plottingLayer, SuperMap.Handler.GraphicObject);//添加态势标绘控件map.addControls([plottingEdit, drawGraphicObject]);}function addLayer() {map.addLayers([layer, plottingLayer]);map.setCenter(new SuperMap.LonLat(0, 0), 0);plotPanel = new SuperMap.Plotting.PlotPanel("plotPanel", serverUrl, window.map);plotPanel.events.on({"initializeCompleted": initializeCompleted});plotPanel.initializeAsync();//createPlotPanel(serverUrl, map, "plotPanel");//创建标绘面板}function initializeCompleted(evt) {plotPanel.setDrawFeature(drawGraphicObject);}//取消标绘与编辑function plottingAllDeactivate() {plottingEdit.deactivate();drawGraphicObject.deactivate();}//清空绘制function PlottingClear() {plottingAllDeactivate();plottingLayer.removeAllFeatures();}//取消标绘,激活标绘编辑控件function PlottingDrawCancel() {plottingAllDeactivate();plottingEdit.activate();}document.onmouseup = function (evt) {var evt = evt || window.event;if (evt.button === 2) {PlottingDrawCancel();return false;}evt.stopPropagation();}</script></body></html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。