Wednesday, 15 February 2012

javascript - How to change for drawing Manager selection option by default? -



javascript - How to change for drawing Manager selection option by default? -

i utilize google.maps.drawing.drawingmanager seems like:

drawingmanager = new google.maps.drawing.drawingmanager({ drawingmode: google.maps.drawing.overlaytype.marker, markeroptions: { draggable: true, optimized: false, icon: new google.maps.markerimage('uxt/images/ap_gif.gif') }, drawingcontroloptions: { position: google.maps.controlposition.top_center, drawingmodes: [ google.maps.drawing.overlaytype.marker, google.maps.drawing.overlaytype.polygon ] }, polygonoptions: { fillcolor: '#1e90ff', strokeweight: 0, fillopacity: 0.3, editable: true }, map: mapa });

so toolbar looks like:

as see default (after page reload) marker selected need "the hand" ('stop drawing') selected.

how can configure drawingmanager create this?

thank you.

just set drawingmode in options null:

drawingmanager = new google.maps.drawing.drawingmanager({ drawingmode: null, ...

javascript google-maps-api-3 drawing

No comments:

Post a Comment