Hello,
I created a private map with a lines on my google maps , and all I can
do is link to the map on google or export as kml file.
But I would need a fully generated java code so I can use the code
the way I want at my site, for example like this:
<script type="text/javascript">
function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(37.4419, -122.1419), 3);
var polyline1 = new GPolyline([
new GLatLng(59.413780, 92.446281),
new GLatLng(60.630100, -122.1519),
new GLatLng(37.4519, -122.1519),
new GLatLng(37.4519, -122.1519),
new GLatLng(37.4519, -122.1519)
], "#ff0000", 10);
map.addOverlay(polyline1);
var polyline2 = new GPolyline([
new GLatLng(37.4320, -122.1419),
new GLatLng(37.4320, -122.1519)
], "#000000", 10);
map.addOverlay(polyline2);
}
}
</script>
Is that somehow possible?
Thanks.
--
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 [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-js-api-v3?hl=en.