Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function testarr()
- {
- polygon1 = [new google.maps.LatLng(54.66092513983568, 39.71935272216797),
- new google.maps.LatLng(54.63847909506459, 39.718666076660156),
- new google.maps.LatLng(54.63748562083948, 39.77668762207031),
- new google.maps.LatLng(54.66430090574764, 39.77668762207031)];
- polygon2 = [new google.maps.LatLng(54.605482774276126, 39.713172912597656),
- new google.maps.LatLng(54.58817883247707, 39.714202880859375),
- new google.maps.LatLng(54.58917351104145, 39.734458923339844),
- new google.maps.LatLng(54.607073572207575, 39.7320556640625)];
- polygonpolygon.push(polygon1);
- polygonpolygon.push(polygon2);
- }
- var polyg = new google.maps.Polygon({
- fillColor: 'blue',
- path: polyarr111,
- strokeWeight: 3
- });
- for (var u=0; u<2; u++) {
- polyg.setPaths(new google.maps.MVCArray(polygonpolygon[u]));
- };
- var polygonOptions = {
- fillColor: 'blue',
- strokeWeight: 3
- };
- for (var u=0; u<polygonpolygon.length; u++) {
- var polygon = new google.maps.Polygon(polygonOptions);
- polygon.setPaths(polygonpolygon[u]);
- polygon.setMap(map);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement