Hello

Here is mycode, I try to creating 1 polyline betwen two different
latitude and longitude, map is creating with 1 marker only, 2nd marker
is not creating as well poly line is also not creating

-----------------------
var longitude =0;longitude=getQueryVariable("long");
var latitude =0;latitude =getQueryVariable("lat");
var insLat=0;insLat=getQueryVariable("insLat");
var insLong=0;insLong=getQueryVariable("insLong");
var GeoProp ='';GeoProp ='('+latitude +','+longitude +')';
var GeoIns ='';GeoIns ='('+insLat+','+insLong+')';
//    var map = new GMap(document.getElementById("map"));
var map = new GMap2(document.getElementById("map"), {size:new GSize
(430,340)});

        var mapTypeControl = new GMapTypeControl();
        var topRight = new GControlPosition(G_ANCHOR_TOP_RIGHT, new
GSize(10,10));
        var bottomRight = new GControlPosition(G_ANCHOR_BOTTOM_RIGHT,
new GSize(10,10));
        map.addControl(mapTypeControl, topRight);
        map.addControl(new GLargeMapControl());

//                  map.addControl(new GLargeMapControl());
  //      var mapControl = new GMapTypeControl();
    //    map.addControl(mapControl);
map.setCenter(new GLatLng(latitude, longitude), 12);
var marker = new GMarker(new GLatLng(latitude, longitude));
map.addOverlay(marker);
map.setCenter(new GLatLng(insLat, insLong), 12);
var marker = new GMarker(new GLatLng(insLat, insLong));
map.addOverlay(marker);
var polyOptions = {geodesic:true};
var polyline = new GPolyline(GeoIns,GeoProp, "#ff0000", 3, 1,
polyOptions);
map.addOverlay(polyline);
----------------

Seems I am missing something, please advise
--~--~---------~--~----~------------~-------~--~----~
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