| visicom.ua | rf-planning | sets of geodata and gis solutions | gps-navigation | maps for polygraphy |
|
|
Map | About company | Project | Documentation (API) |
EventsThis example shows the processing of events click on the map, dragging the map and marker.
Display in browser:Description of events:Source code:var marker = new VMarker(point); marker.draggable(true); map.add(marker).repaint(); map.mouseclick( function(coords) { addMessage("Click on the map: " + coords.lng.toPrecision(6) + ", " + coords.lat.toPrecision(6) + " (map.mouseclick)"); } ); marker.enddrag( function() { addMessage("You pulled a marker (marker.enddrag)"); } ); map.enddrag( function() { addMessage("You pulled the map (map.enddrag)"); } ); map.beforezoomchange( function(newIndex) { if (newIndex < 6) { addMessage("Lock change scale (map.beforezoomchange)"); return false; } addMessage("Change of scale in " + newIndex + " (map.beforezoomchange)"); } ); map.onzoomchange( function() { addMessage("Map scale changed (map.onzoomchange)"); } ); |
|
Tel./Fax: +380 44 201-00-26 E-mail: web-maps@visi.com.ua Address: 01025, Ukraine, Kiev, B. Zhytomirskaya Str., 25/2 |
© 2006 2011, Visicom. All rights reserved. |