Revision: 45
Author: cphillip
Date: 2006-04-30 20:23:40 -0700 (Sun, 30 Apr 2006)
ViewCVS: http://svn.sourceforge.net/wnmap/?rev=45&view=rev
Log Message:
-----------
Fix uses of this.point to be this.getPoint().
Modified Paths:
--------------
branches/gmap2-port/web/js/NodeMarker.js
Modified: branches/gmap2-port/web/js/NodeMarker.js
===================================================================
--- branches/gmap2-port/web/js/NodeMarker.js 2006-05-01 03:12:06 UTC (rev 44)
+++ branches/gmap2-port/web/js/NodeMarker.js 2006-05-01 03:23:40 UTC (rev 45)
@@ -70,7 +70,7 @@
var pos = document.createElement ("div");
pos.className = "position";
- pos.innerHTML = "<b>Latitude:</b> " + Math.round(this.point.lat()*1000000)/1000000 + "<br/><b>Longitude:</b> " + Math.round(this.point.lng()*1000000)/1000000;
+ pos.innerHTML = "<b>Latitude:</b> " + Math.round(this.getPoint().lat()*1000000)/1000000 + "<br/><b>Longitude:</b> " + Math.round(this.getPoint().lng()*1000000)/1000000;
thing.appendChild (pos);
var address = document.createElement ("div");
@@ -80,7 +80,7 @@
var distance = document.createElement ("div");
distance.className = "position";
- distance.innerHTML = "<b>Distance to center:</b> " + distanceToCenterPretty(this.point.lat(), this.point.lng());
+ distance.innerHTML = "<b>Distance to center:</b> " + distanceToCenterPretty(this.getPoint().lat(), this.getPoint().lng());
//thing.appendChild (distance);
var actionList = document.createElement ("ul");
@@ -90,7 +90,7 @@
var addActionLink = document.createElement ("a");
addActionLink.innerHTML = "Add this to our database as a location for a potential node.<br/>";
- url = WNMAP_MAP_URL + "/AddPotentialNode.php?lon=" + this.point.lng() + "&lat=" + this.point.lat() + "&name=" + URLEncode (this.name) + "&addr='" + encode64 (this.streetAddress) + "'";
+ url = WNMAP_MAP_URL + "/AddPotentialNode.php?lon=" + this.getPoint().lng() + "&lat=" + this.getPoint().lat() + "&name=" + URLEncode (this.name) + "&addr='" + encode64 (this.streetAddress) + "'";
addActionLink.href = "javascript:window.open (url, null,'menubar=no,scrollbars=yes,addressbar=no,locationbar=no,status=no,height=530,width=440'); void(0);";
addActionItem.appendChild (addActionLink);
@@ -179,7 +179,7 @@
var pos = document.createElement ("div");
pos.className = "position";
- pos.innerHTML = "<b>Latitude:</b> " + Math.round(this.point.lat()*1000000)/1000000 + "<br/><b>Longitude:</b> " + Math.round(this.point.lng()*1000000)/1000000;
+ pos.innerHTML = "<b>Latitude:</b> " + Math.round(this.getPoint().lat()*1000000)/1000000 + "<br/><b>Longitude:</b> " + Math.round(this.getPoint().lng()*1000000)/1000000;
thing.appendChild (pos);
var address = document.createElement ("div");
@@ -189,7 +189,7 @@
var distance = document.createElement ("div");
distance.className = "position";
- distance.innerHTML = "<b>Distance to center:</b> " + distanceToCenterPretty(this.point.lat(), this.point.lng());
+ distance.innerHTML = "<b>Distance to center:</b> " + distanceToCenterPretty(this.getPoint().lat(), this.getPoint().lng());
//thing.appendChild (distance);
var f = document.createElement ("div");
@@ -207,8 +207,9 @@
}
this.zoomTo = function () {
+alert("hi");
this.destroyTooltip ();
- map.setCenter (this.point, 17);
+ map.setCenter (this.getPoint(), 17);
}
this.showTooltip = function () {
@@ -227,7 +228,7 @@
tooltip.style.filter = "alpha(opacity=" + opacity + ")";
tooltip.style.opacity = opacity;
- var b = map.spec.getBitmapCoordinate (this.point.lat(), this.point.lng(), map.getZoom());
+ var b = map.spec.getBitmapCoordinate (this.getPoint().lat(), this.getPoint().lng(), map.getZoom());
var c = map.getDivCoordinate (b.x, b.y);
tooltip.style.left = c.x + (this.icon.iconAnchor.x + 5) + "px";
tooltip.style.top = c.y - (this.icon.iconAnchor.y) + "px";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|