|
|
@ -63,7 +63,7 @@ export class GaoDePixel extends GaodeBasic implements IPixel { |
|
|
|
export class GaoDeMarker extends GaodeBasic implements IMarker { |
|
|
|
export class GaoDeMarker extends GaodeBasic implements IMarker { |
|
|
|
constructor(options: IMarkOptions) { |
|
|
|
constructor(options: IMarkOptions) { |
|
|
|
super(); |
|
|
|
super(); |
|
|
|
let conf = MapTools.InstanceConvert(options); |
|
|
|
let conf = MapTools.ExplicitConvert(options); |
|
|
|
this.self = new AMap.Marker(conf); |
|
|
|
this.self = new AMap.Marker(conf); |
|
|
|
this._position = this.self._position; |
|
|
|
this._position = this.self._position; |
|
|
|
} |
|
|
|
} |
|
|
@ -85,7 +85,7 @@ export class GaoDeMarker extends GaodeBasic implements IMarker { |
|
|
|
export class GaoDeMarkerCluster extends GaodeBasic implements IMarkerCluster { |
|
|
|
export class GaoDeMarkerCluster extends GaodeBasic implements IMarkerCluster { |
|
|
|
constructor(map: IMap, list: Object[], options: any) { |
|
|
|
constructor(map: IMap, list: Object[], options: any) { |
|
|
|
super(); |
|
|
|
super(); |
|
|
|
let conf = MapTools.InstanceConvert(options); |
|
|
|
let conf = MapTools.ExplicitConvert(options); |
|
|
|
this.self = new AMap.MarkerCluster(map.self, list, conf) |
|
|
|
this.self = new AMap.MarkerCluster(map.self, list, conf) |
|
|
|
} |
|
|
|
} |
|
|
|
on(eventName: string, callback: Function): void { |
|
|
|
on(eventName: string, callback: Function): void { |
|
|
@ -183,7 +183,7 @@ export class GaodeMouseTool extends GaodeBasic implements IMouseTool { |
|
|
|
this.self = new AMap.MouseTool(map.self); |
|
|
|
this.self = new AMap.MouseTool(map.self); |
|
|
|
} |
|
|
|
} |
|
|
|
rule(options: any) { |
|
|
|
rule(options: any) { |
|
|
|
let conf = MapTools.InstanceConvert(options); |
|
|
|
let conf = MapTools.ExplicitConvert(options); |
|
|
|
return this.self.rule(conf) |
|
|
|
return this.self.rule(conf) |
|
|
|
} |
|
|
|
} |
|
|
|
measureArea(options: any) { |
|
|
|
measureArea(options: any) { |
|
|
|