Google Map Webpart

Aug 13, 2010 at 3:29 PM
Edited Aug 13, 2010 at 3:37 PM

Great Webpart

1) Is there way i can set boundaries in google map for particular area in county. 2) My website has three urls for example when i type test.org in brouwser it will redirect to http://public.test.org,http://intranet.test.org (with in the network), Https://intranet.test.org for the users signing from public network. which Url i should use to get Google Maps API, i used test.org & it works for public & http:// intranet but not to the https

 

Mar 23, 2011 at 3:48 PM

Use a Content Editor web part and add in the following vector overlay.  Make sure you put it below your map web part.

 

<script type='text/javascript'>
var points =
[
new GLatLng(44.296332880058706,-76.78138732910156),
new GLatLng(45.218808,-76.206665),
new GLatLng(37.892196,-113.994141)
];

var polygon = new GPolygon(points,'#FF0000',0.1,0.4,'#FF0000',0.4);
map.addOverlay(polygon);
</script>