|
@@ -187,19 +187,19 @@
|
|
|
right: 20px;
|
|
|
}
|
|
|
</style>
|
|
|
- <!--测试环境使用-->
|
|
|
+ <!--测试环境使用
|
|
|
<link href='https://js.arcgis.com/3.27/esri/css/esri.css' rel='stylesheet' />
|
|
|
<script src='jquery.min.js'></script>
|
|
|
<script src='https://js.arcgis.com/3.27/init.js' type='text/javascript'></script>
|
|
|
<script src='init-gmap.js?v=1.15.9' type='text/javascript'></script>
|
|
|
- <script src='init-gcontrols.js?v=1.0.5' type='text/javascript'></script>
|
|
|
+ <script src='init-gcontrols.js?v=1.0.5' type='text/javascript'></script>-->
|
|
|
|
|
|
- <!--正式环境使用
|
|
|
+ <!--正式环境使用-->
|
|
|
<link href='http://a4.petrochina/gisapi/esri/css/esri.css' rel='stylesheet' />
|
|
|
<script src='http://a4.petrochina/gisapi/third/jquery/jquery-1.9.1.min.js'></script>
|
|
|
<script src='http://a4.petrochina/gisapi/init.js' type='text/javascript'></script>
|
|
|
<script src='http://a4.petrochina/gisapi/lib/init-gmap.js?v=1.15.9' type='text/javascript'></script>
|
|
|
- <script src='http://a4.petrochina/gisapi/lib/init-gcontrols.js?v=1.0.5' type='text/javascript'></script>-->
|
|
|
+ <script src='http://a4.petrochina/gisapi/lib/init-gcontrols.js?v=1.0.5' type='text/javascript'></script>
|
|
|
|
|
|
<script>
|
|
|
var map = null, app = { token: "d4b2b740-9814-4d75-9cda-dac96fc2bc10" };
|
|
@@ -346,9 +346,9 @@
|
|
|
app.fillSymbol = new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID, new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new Color([255, 0, 0, 0.65]), 1), new Color([255, 0, 0, 0.35]));
|
|
|
});
|
|
|
on(map, "GraphicMouseClick", function (evt) {
|
|
|
- console.log('q', evt);
|
|
|
+ console.log('GraphicMouseClick', evt);
|
|
|
// 自定义window方法,vue组件注册,完成vue与iframe的通信,注册方法见baidu-page -> CenterCenter,搜索handleSpanClick
|
|
|
- window.parent['handleSpanClick'](evt.name, evt.graphic.attributes);
|
|
|
+ //window.parent['handleSpanClick'](evt.name, evt.graphic.attributes);
|
|
|
});
|
|
|
|
|
|
// 加载地图服务数据
|