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 <shadowcree...@gmail.com> > 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 > google-maps-js-api...@googlegroups.com. > To unsubscribe from this group, send email to > google-maps-js-api-v3+unsubscr...@googlegroups.com<google-maps-js-api-v3%2bunsubscr...@googlegroups.com> > . > 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 google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.