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.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to