Last change
on this file since 8836 was 8836, checked in by dennisw, 14 years ago |
van elke doc een pdf toegevoegd
ontwerprapport_v0.1.doc - aangepast naar v0.2
website_ontwerp/ - Google Maps JavaScript API V3 toegevoegd met testpolygon
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Date Revision
-
Property svn:mime-type
set to
text/plain
|
File size:
919 bytes
|
Line | |
---|
1 | function initialize() {
|
---|
2 | var myLatlng = new google.maps.LatLng(52.164309,4.493694);
|
---|
3 | var myOptions = {
|
---|
4 | zoom: 14,
|
---|
5 | center: myLatlng,
|
---|
6 | mapTypeId: google.maps.MapTypeId.ROADMAP
|
---|
7 | }
|
---|
8 | var map = new google.maps.Map(document.getElementById("heatmap"), myOptions);
|
---|
9 |
|
---|
10 |
|
---|
11 | var bermudaTriangle;
|
---|
12 | var triangleCoords = [
|
---|
13 | new google.maps.LatLng(52.162197,4.490733),
|
---|
14 | new google.maps.LatLng(52.162092,4.497428),
|
---|
15 | new google.maps.LatLng(52.159723,4.493222),
|
---|
16 | new google.maps.LatLng(52.162197,4.490733)
|
---|
17 | ];
|
---|
18 |
|
---|
19 | // Construct the polygon
|
---|
20 | // Note that we don't specify an array or arrays, but instead just
|
---|
21 | // a simple array of LatLngs in the paths property
|
---|
22 | bermudaTriangle = new google.maps.Polygon({
|
---|
23 | paths: triangleCoords,
|
---|
24 | strokeColor: "#FF0000",
|
---|
25 | strokeOpacity: 0.8,
|
---|
26 | strokeWeight: 2,
|
---|
27 | fillColor: "#FF0000",
|
---|
28 | fillOpacity: 0.35
|
---|
29 | });
|
---|
30 |
|
---|
31 | bermudaTriangle.setMap(map);
|
---|
32 |
|
---|
33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.