Autodesk 15606-011408-9300 Developer Guide - Page 174
<PARAM NAME=Units VALUE=M>
UPC - 606121429548
View all Autodesk 15606-011408-9300 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 174 highlights
map.htm Example Code (continued) bVer = parseInt(navigator.appVersion); if (bName == "Netscape" && bVer >= 4) ver = "n4"; else if (bName == "Microsoft Internet Explorer" && bVer >= 4) ver = "e4"; else ver = "other"; // ...if Netscape, embed event observer if (ver == "n4") { document.write(""); document.write(""); } // Now create the event-handling function. The function updates the // lat & lon text boxes with the coordinates of the point the user // clicks. Note that the name of this function must be the same as // the event name so that the MapGuideObserver6 observer can find it. function onDigitizedPoint(map, point) { if (ver == "n4") { parent.poiFrame.document.pointForm.pointLat.value = point.getX(); parent.poiFrame.document.pointForm.pointLon.value = point.getY(); } else { parent.poiFrame.pointForm.pointLat.value = point.getX(); parent.poiFrame.pointForm.pointLon.value = point.getY(); } } //Embed the map with both the OBJECT tag and the EMBED tag so that //it can be used by both browsers 174 | Chapter 7 Applications