Open mowatermelon opened 6 years ago
Name | Type | Summary | Class | |
---|---|---|---|---|
Collection<Layer> | A flat collection of all the layers in the map. more details | more details | Map | |
Basemap | Specifies a basemap for the map. more details | more details | Map | |
String | The name of the class. more details | more details | Accessor | |
Ground | Specifies the surface properties for the map. more details | more details | Map | |
Collection<Layer> | A collection of operational layers. more details | more details | Map |
spatialReference
Name | Type | Summary | Class | |
---|---|---|---|---|
String | The name of the class. more details | more details | Accessor | |
Boolean | Indicates if the spatial reference refers to a geographic coordinate system. more details | more details | SpatialReference | |
Boolean | Indicates if the wkid of the spatial reference object is one of the following values: | more details | SpatialReference | |
Boolean | Indicates if the wkid of the spatial reference object is | more details | SpatialReference | |
Boolean | Indicates if the spatial reference of the map supports wrapping around the International Date Line. more details | more details | SpatialReference | |
SpatialReference | A convenience spatial reference instance for Web Mercator. more details | more details | SpatialReference | |
SpatialReference | A convenience spatial reference instance for WGS84. more details | more details | SpatialReference | |
Number | The well-known ID of a spatial reference. more details | more details | SpatialReference | |
String | The well-known text that defines a spatial reference. more details | more details | SpatialReference |
同样的dom
<div id="viewDiv" class="map_div" @mousemove="showCoordinates($event)" ></div>
3.16获取鼠标mapobject写法
// 显示当前坐标
showCoordinates: function(e) {
let _this = this;
if(!_this.isHide){
_this.evt.x = e.mapPoint.x;
_this.evt.y = e.mapPoint.y;
}
}
4.6写法
// 显示当前坐标
showCoordinates: function(e) {
let _this = this;
_this.view.hitTest(e)
.then(function(res){
let point = res.results[0].mapPoint;
if(!_this.isHide){
_this.evt.x = point.x;
_this.evt.y = point.y;
}
});
}
Specifies a basemap for the map. The basemap is a set of tile layers that give geographic context to the MapView or SceneView and the other operational layers in the map.
This value can be an instance of Basemap or one of the strings listed in the table below.