ArcGIS API for JavaScript在地图上添加一个标注图标
来源:互联网 发布:数据库基础知识题库 编辑:程序博客网 时间:2024/06/15 01:17
_addAddress: function () { //添加热点地址
this.curNavToolbar.deactivate();
this._draw.deactivate();
this._graphiclayer.clear();
this.cmap.graphics.clear();
this.cmap.setMapCursor("pointer");
this._draw.activate(Draw.POINT);
this._draw.on("draw-end", function (evt) {
this._hotCanMove = true;
this.cmap.setMapCursor("default");
this._draw.deactivate();
this._point = evt.geometry;
var marksymbol = new esri.symbol.PictureMarkerSymbol("/images/position.png", 20, 24).setOffset(0, 11);
this._graphic = new Graphic(evt.geometry, marksymbol);
this._graphiclayer.clear();
this._graphiclayer.add(this._graphic);
this.cmap.addLayer(this._graphiclayer);
this._graphiclayer.on("mouse-down", function (evt) {
if (this._hotCanMove) {
this._isMouseDown = true;
this.cmap.disableMapNavigation();
}
}.bind(this));
this.curNavToolbar.deactivate();
this._draw.deactivate();
this._graphiclayer.clear();
this.cmap.graphics.clear();
this.cmap.setMapCursor("pointer");
this._draw.activate(Draw.POINT);
this._draw.on("draw-end", function (evt) {
this._hotCanMove = true;
this.cmap.setMapCursor("default");
this._draw.deactivate();
this._point = evt.geometry;
var marksymbol = new esri.symbol.PictureMarkerSymbol("/images/position.png", 20, 24).setOffset(0, 11);
this._graphic = new Graphic(evt.geometry, marksymbol);
this._graphiclayer.clear();
this._graphiclayer.add(this._graphic);
this.cmap.addLayer(this._graphiclayer);
this._graphiclayer.on("mouse-down", function (evt) {
if (this._hotCanMove) {
this._isMouseDown = true;
this.cmap.disableMapNavigation();
}
}.bind(this));
0 0
- ArcGIS API for JavaScript在地图上添加一个标注图标
- ArcGIS 在地图上添加标注
- 用ArcGIS API for JavaScript在地图上绘制圆多边形
- Arcgis API for JavaScript在地图上实现手机定位信息的追踪显示
- ArcGIS api for javascript——地图配置-增加标注到滑动器
- 使用ArcGIS API for JavaScript 4.3 加载一个瓦片地图
- ArcGIS API for JavaScript——给图层添加标注
- arcgis for js开发, 根据给定的经纬度在地图上进行标注
- arcgis for js开发,根据给定的经纬度在地图上进行标注
- 百度地图上自定义添加一个标注
- js 调用百度地图api,并在地图上进行打点,添加标注
- 如何使用百度地图API在地图上批量添加点标注
- 高德地图Web端JavaScript API开发(二)---在地图上绘制(点标注)
- ArcGIS API for JS 添加地图控件
- 【ArcGIS for JavaScript】加载地图,并标注点
- 【ArcGIS for JavaScript】加载地图,并标注点
- ArcGIS API for Javascript 第一个地图
- ArcGIS API for Silverlight 添加图标(自定义图标)
- git的基本用法
- linux struct file结构
- java 企业网站源码模版 有前后台 springmvc SSM 生成静态化
- Glusterfs下读写请求的处理流程
- Linux UART无法接受‘\r’即0X0D
- ArcGIS API for JavaScript在地图上添加一个标注图标
- SqlServer中模糊查询对于特殊字符的处理
- java中的并发容器之CopyOnWriteArrayList
- 基于原版Hadoop的YDB部署
- servlet中获取路径
- springmvc整合mybatis框架源码 bootstrap html5 SSM
- [jsp]out.print()和response.getWriter().print()的区别
- 通用链接universal links中遇到的问题
- 苹果加强审核力度,被拒原因终逃不过这些!