Autodesk 15606-011408-9300 Developer Guide - Page 180
Zooms to the point after a Find, function zoomToPoint
UPC - 606121429548
View all Autodesk 15606-011408-9300 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 180 highlights
poi.asp Example Code (continued) function getMap() { if (ver == "n4") return parent.mapFrame.document.map; else return parent.mapFrame.map; } // Following is the function called by the Digitize button. If the // browser is Navigator, it will send the onDigitizedPoint event to // the MapGuideObserver6.class observer (the obs variable). If the // browser is Internet Explorer, it will know to look for an observer // method with the same name as the event, which we defined with // VBScript in map.htm. function digitizeIt() { if (ver == "n4") getMap().digitizePoint(parent.mapFrame.document.obs); else getMap().digitizePoint(); } function updateMap() // Updates the map after an Add or Remove { getMap().getMapLayer("POI").setRebuild(true); getMap().refresh(); } function zoomToPoint() // Zooms to the point after a Find { getMap().zoomWidth(, , 1000, "Mi"); getMap().refresh(); }