Hi,
I trired to add this codes in order to tracking the changes on map but still
does not working!
GEvent.addListener(map, 'click', function(overlay, latlng) {
    var lat = latlng.lat();
    var lon = latlng.lng();
    cLat =lat;
    cLng = lon;
    var latOffset = 0.01;
    var lonOffset = 0.01;
    var point = new GLatLng(lat, lon);
         var marker = new GMarker(point, {draggable: true});
         map.addOverlay(marker);
         markers.push(marker);
          geocoder.getLocations(latlng, showAddress);});

>
> *    document.getElementById("lat1").innerHTML = Point.lat().toFixed(5);
>     document.getElementById("lng1").innerHTML = Point.lng().toFixed(5);
> *



On Tue, Jul 21, 2009 at 9:00 PM, behi hoseini <[email protected]>wrote:

> Dear Esa,
>
> Thanks a lot for your perfect help.this is the second time you are giving
> me a very perfect advise.The Map part is working charm! but i still have
> some problem with table part which was supposed to keep track of any
> changes!.
> I am thinking to update the table according to any changes in markers
> location, as well.
> here there is an example :
> http://pagesperso-orange.fr/universimmedia/geo/loc.htm
>
> Could you please let me know how I can do this?
>
> Again Thanks alot
> Behrouz
> www.mybcit.blogspot.com
>
>
> On Tue, Jul 21, 2009 at 4:45 PM, Esa <[email protected]> wrote:
>
>>
>> The visible marker is not draggable because these lines mess things.
>> You create three GMarker instances. One is pushed in markers array,
>> one is added on map and one is made draggable but not added on map.
>>
>>          marker = new GMarker(point);
>>          markers.push(marker);
>>          map.addOverlay(new GMarker(point));
>>          var marker = new GMarker(point, {draggable: true});
>>
>> Try instead:
>>          var marker = new GMarker(point, {draggable: true});
>>          map.addOverlay(marker);
>>          markers.push(marker);
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to