Есть функция при вызове надо брать latitude, longitude
Пробовал типо map.getDevInfo(latitude,logitude) и конечно это не прокатило))) Как это можно реализовать?
getDevInfo: function() {
var a = this.zoomLevel(),
b = this.mapSet.getBBox(),
b = this.xyToCoordinates((this.mouseX - this.mapContainer.x) / a - b.x * this.mapScale, (this.mouseY - this.mapContainer.y) / a - b.y * this.mapScale),
a = {
chart: this,
type: "writeDevInfo",
zoomLevel: a,
zoomX: this.zoomX(),
zoomY: this.zoomY(),
zoomLatitude: this.zoomLatitude(),
zoomLongitude: this.zoomLongitude(),
latitude: b.latitude,
longitude: b.longitude,
left: this.mouseX,
top: this.mouseY,
right: this.realWidth - this.mouseX,
bottom: this.realHeight -
this.mouseY,
percentLeft: Math.round(this.mouseX / this.realWidth * 100) + "%",
percentTop: Math.round(this.mouseY / this.realHeight * 100) + "%",
percentRight: Math.round((this.realWidth - this.mouseX) / this.realWidth * 100) + "%",
percentBottom: Math.round((this.realHeight - this.mouseY) / this.realHeight * 100) + "%"
},
b = "zoomLevel:" + a.zoomLevel + ", zoomLongitude:" + a.zoomLongitude + ", zoomLatitude:" + a.zoomLatitude + "\n",
b = b + ("zoomX:" + a.zoomX + ", zoomY:" + a.zoomY + "\n"),
b = b + ("latitude:" + a.latitude + ", longitude:" + a.longitude + "\n"),
b = b + ("left:" +
a.left + ", top:" + a.top + "\n"),
b = b + ("right:" + a.right + ", bottom:" + a.bottom + "\n"),
b = b + ("left:" + a.percentLeft + ", top:" + a.percentTop + "\n"),
b = b + ("right:" + a.percentRight + ", bottom:" + a.percentBottom + "\n");
a.str = b;
this.fire(a);
return a
},