So far this is what I got. The values are all hardcoded(testing). But
I don't know where to insert the code for marker(s). Please help.
Thanks
function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(14.542667, 121.05413), 16);
var mapControl = new GMapTypeControl();
map.addControl(mapControl);
map.addControl(new GLargeMapControl());
var polyline = new GPolyline([
new GLatLng(14.542667, 121.05413),
new GLatLng(14.542782, 121.054353),
new GLatLng(14.542911, 121.0545013),
new GLatLng(14.542909, 121.054686),
new GLatLng(14.542865, 121.054879),
new GLatLng(14.542847, 121.055056),
new GLatLng(14.542745, 121.05526),
new GLatLng(14.54261, 121.055289),
new GLatLng(14.542517, 121.055316),
new GLatLng(14.542421, 121.055335),
], "#ab2220", 3);
map.addOverlay(polyline);
}
}
On Jun 21, 2:40 pm, xelawho <[email protected]> wrote:
> > Oh no sorry for being stupid but how will I insert it to my code?
>
> how do you place markers on the map? I think you shouldstartlooking
> at some examples:http://econym.org.uk/gmap/
>
> although as Larry says, if you are just starting out, it makes much
> more sense to use v3 as v2 is deprecated and its future is uncertain.
--
You received this message because you are subscribed to the Google Groups
"Google Maps API V2" 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.