>
>  1.    have an accessible id field for each overlay, either managed by map or 
> user, so that the developer could easily distinguish between each overlay. 
> This would be useful, for example, if we want to correlate an overlay on map 
> screen and its copy in the backend database when editing.
>
>
To achieve this, you can simply attach the id as a property on the overlay 
object:

     polygon.customId = 1234;
 

> 2.    Expose the functions which are called when we click the drawing 
> icons/buttons on map (MARKER, POLYLINE, RECTANGLE, CIRCLE, POLYGON), so that 
> developer could also call them through other means, e.g. via menu items if 
> they wish, without using icons/buttons on map.
>
>
This is already possible. Firstly, turn off the buttons on the map by 
specifying drawingControl:false in the options of the DrawingManager. Then, 
you can change the drawing mode programmatically by calling setDrawingMode 
on the DrawingManager 
object: 
http://code.google.com/apis/maps/documentation/javascript/reference.html#DrawingManager
 

> 3.    Provide customisation for map icon/buttons, i.e. images and titles 
> (shown when mouseover), so that we could use “business” based map buttons, 
> rather than “geometry” based map buttons (e.g. “Plant a tree” vs. “Add a 
> marker”).
>
>
You can implement your own custom control on the map: 
http://code.google.com/apis/maps/documentation/javascript/controls.html#CustomControls
This control can have buttons with your own icons and tooltips, and these 
buttons, when clicked, would cause setDrawingMode to be called on the 
DrawingManager object to change the drawing mode, as above.

Enoch 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/pu8ZxyjhPoIJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to