📄 atlasuimap.js
字号:
this.set_popupTemplate = function(template) {
_popupTemplate = template;
this.render();
this.raisePropertyChanged('popupTemplate');
}
this.get_latitude = function() {
if (_map) {
return _map.GetCenterLatitude();
}
return _latitude;
}
this.set_latitude = function(value) {
if (_map) {
_map.SetCenter(value, this.get_longitude());
}
else {
_latitude = value;
}
}
this.get_longitude = function() {
if (_map) {
return _map.GetCenterLongitude();
}
return _longitude;
}
this.set_longitude = function(value) {
if (_map) {
_map.SetCenter(this.get_latitude(), value);
}
else {
_longitude = value;
}
}
this.get_zoomLevel = function() {
if (_map) {
return _map.GetZoomLevel();
}
return _zoomLevel;
}
this.set_zoomLevel = function(value) {
if (_map) {
_map.SetZoom(value);
}
else {
_zoomLevel = value;
}
}
this.get_width = function() {
if (_map) {
return _map.width;
}
return _width;
}
this.set_width = function(value) {
if (_map) {
_map.Resize(value, this.get_height());
}
else {
_width = value;
}
}
this.get_height = function() {
if (_map) {
return _map.height;
}
return _height;
}
this.set_height = function(value) {
if (_map) {
_map.Resize(this.get_width(), value);
}
else {
_height = value;
}
}
this.get_mapStyle = function() {
if (_map) {
var value = _map.GetMapStyle();
switch (value) {
case "a":
return Web.UI.MapStyle.Aerial;
case "h":
return Web.UI.MapStyle.Hybrid;
default:
return Web.UI.MapStyle.Road;
}
}
return _mapStyle;
}
this.set_mapStyle = function(value) {
if (_map) {
value = this._parseMapStyle(value);
_map.SetMapStyle(value);
}
else {
_mapStyle = value;
}
}
this.get_pushpinImageURL = function() {
return _pushpinImageURL;
}
this.set_pushpinImageURL = function(value) {
_pushpinImageURL = value;
}
this.get_pushpinImageWidth = function() {
return _pushpinImageWidth;
}
this.set_pushpinImageWidth = function(value) {
_pushpinImageWidth = value;
}
this.get_pushpinImageHeight = function() {
return _pushpinImageHeight;
}
this.set_pushpinImageHeight = function(value) {
_pushpinImageHeight = value;
}
this.get_pushpinCssClass = function() {
return _pushpinCssClass;
}
this.set_pushpinCssClass = function(value) {
_pushpinCssClass = value;
}
this.get_popupCssClass = function() {
return _popupCssClass;
}
this.set_popupCssClass = function(value) {
_popupCssClass = value;
}
this.get_dataValueField = function() {
return _dataValueField;
}
this.set_dataValueField = function(value) {
_dataValueField = value;
}
this.get_dataLatitudeField = function() {
return _dataLatitudeField;
}
this.set_dataLatitudeField = function(value) {
_dataLatitudeField = value;
}
this.get_dataLongitudeField = function() {
return _dataLongitudeField;
}
this.set_dataLongitudeField = function(value) {
_dataLongitudeField = value;
}
this.get_dataImageURLField = function() {
return _dataImageURLField;
}
this.set_dataImageURLField = function(value) {
_dataImageURLField = value;
}
this.get_dataImageURLFormatString = function() {
return _dataImageURLFormatString;
}
this.set_dataImageURLFormatString = function(value) {
_dataImageURLFormatString = value;
}
this.get_dataImageWidthField = function() {
return _dataImageWidthField;
}
this.set_dataImageWidthField = function(value) {
_dataImageWidthField = value;
}
this.get_dataImageHeightField = function() {
return _dataImageHeightField;
}
this.set_dataImageHeightField = function(value) {
_dataImageHeightField = value;
}
this.get_dataTextField = function() {
return _dataTextField;
}
this.set_dataTextField = function(value) {
_dataTextField = value;
}
this.get_dataTextFormatString = function() {
return _dataTextFormatString;
}
this.set_dataTextFormatString = function(value) {
_dataTextFormatString = value;
}
this.initialize = function() {
Web.UI.VirtualEarthMap.callBaseMethod(this, 'initialize');
if (_popupTemplate) {
_popupTemplate.initialize();
}
if (_pushpins) {
this._ensureMap();
for (var i = 0; i < _pushpins.length; i++) {
this._addPushpin(_pushpins[i]);
}
}
this.render();
}
this.dispose = function() {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -