that's really easy
function createMapMarker(lat, lng, html, primary_key) {
var point = new google.maps.LatLng(parseFloat(
>
> lat),parseFloat(lng));
> var myMarkerOption ={
> draggable: true,
> map: MainMap,
> position: point,
> title: html,
> visible: true
> };
> var marker = new google.maps.Marker(myMarkerOption);
> marker.primary_key = primary_key
> return marker;
> }
hope is what you needed
2010/8/4 Shadow <[email protected]>
> Or, since PK is unique, you could store your markers in an array (or
> hashtable) where the key is your PK and the value is your marker.
>
> --
> 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]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>
--
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.