What you are looking for is a custom control
See this link for documentation and a couple of working examples:
http://code.google.com/apis/maps/documentation/javascript/controls.html#CustomControls

Extending the example in the link above, you can add a marker
"onclick" of the control

google.maps.event.addDomListener(controlUI, 'click', function() {
     var marker = new google.maps.Marker({
        position: map.getCenter(),
        map: map
    });
});

Hope this leads you in the right direction

Pete

On Jun 23, 7:36 am, whereschp <[email protected]> wrote:
> Can anyone point me in the direction of how to add a button which when
> clicked will change the cursor to and add marker function.
>
> I would like it to look something like thishttp://whereschp.com/img/test.jpg
> It will primarily be used for mobile devices.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
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