Template:Fragoria Map
From FragoriaWiki
(Difference between revisions)
Line 74: | Line 74: | ||
}); | }); | ||
+ | // Origins, anchor positions and coordinates of the marker | ||
+ | // increase in the X direction to the right and in | ||
+ | // the Y direction down. | ||
+ | var GreenDungeon = { | ||
+ | url: '/wiki/images/c/c3/Greendungeon.png', | ||
+ | // This marker is 20 pixels wide by 32 pixels tall. | ||
+ | size: new google.maps.Size(21, 20), | ||
+ | // The origin for this image is 0,0. | ||
+ | origin: new google.maps.Point(10.5,20), | ||
+ | // The anchor for this image is the base of the flagpole at 0,32. | ||
+ | anchor: new google.maps.Point(10.5,20) | ||
+ | }; | ||
+ | // Shapes define the clickable region of the icon. | ||
+ | // The type defines an HTML <area> element 'poly' which | ||
+ | // traces out a polygon as a series of X,Y points. The final | ||
+ | // coordinate closes the poly by connecting to the first | ||
+ | // coordinate. | ||
+ | var shape = { | ||
+ | coords: [0, 0, 0, 20, 21, 20, 21, 0], | ||
+ | type: 'poly' | ||
+ | }; | ||
var FragotownMarker = new google.maps.Marker({ | var FragotownMarker = new google.maps.Marker({ | ||
Line 85: | Line 106: | ||
position: new google.maps.LatLng(-89.128166,16.829451), | position: new google.maps.LatLng(-89.128166,16.829451), | ||
map: map, | map: map, | ||
- | icon: | + | icon: GreenDungeon, |
- | title:"Dark Konung's Tomb" | + | title:"Dark Konung's Tomb", |
+ | zIndex:4 | ||
}); | }); | ||
Line 128: | Line 150: | ||
} | } | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
</script> | </script> | ||
Revision as of 05:24, 5 April 2015
Coordinates