I would create your marker like you normally do then pass it to a class that
you create on your own that includes your index.  Then you can access it by
calling your marker class .index and .(whatever you saved the marker as to
the class).  Just make sure the variable has the right scope and you should
be good.

On Mon, Aug 2, 2010 at 2:25 PM, anonims r <an201...@gmail.com> wrote:

> Hi !
>
> I'm newbie in java script and google maps api. Please help me!
>
> I'm developing database application in delphi, I need integration with
> google maps API for displaying map and PlaceMarkers.
> There is no problem to call java script functions from delphi application.
>
> I have following table in database
>
> CREATE TABLE OBJECTS (
>     ID                 INTEGER     /* Primary key */,
>     NAME          CHAR(300),
>     GPS_X         DOUBLE PRECISION,
>     GPS_Y        DOUBLE PRECISION
> );
>
> I need display OBJECTS in google map, then user may move PlaceMarkers, then
> I need read changed coordinates back into database.
>
> I use Java script function to display objects on google map:
>
>  function createMapMarker(lat, lng, html) {
>     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);
>     return marker;
>   }
>
>
> But I have problem - google.maps.Marker have no property to store record
> primary key.
>
> It is possible to create my Marker class - inherited from
> google.maps.Marker and add new property to it?
>
> Ronalds.
>
>
>
>
>  --
> 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.

Reply via email to