Template:Fragoria Map

From FragoriaWiki

(Difference between revisions)
Jump to: navigation, search
Line 39: Line 39:
map.setMapTypeId('moon');
map.setMapTypeId('moon');
-
//Report Coordinates
+
 
-
google.maps.event.addListener(FragotownMarker, 'dragend', function(evt){
+
-
document.getElementById('current').innerHTML = '<p>Marker dropped: ( ' + evt.latLng.lat().toFixed(6) + ',' + evt.latLng.lng().toFixed(6) + ')</p>';
+
-
});
+
-
google.maps.event.addListener(FragotownMarker, 'dragstart', function(evt){
+
-
document.getElementById('current').innerHTML = '<p>Currently dragging marker...</p>';
+
-
});
+
// Bounds
// Bounds
Line 74: Line 68:
});
});
-
 
+
// Origins, anchor positions and coordinates of the marker
 +
// increase in the X direction to the right and in
 +
// the Y direction down.
 +
var image = {
 +
url: '/wiki/images/c/c3/Greendungeon.png',
 +
// (width, length).
 +
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 &lt;area&gt; 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({

Revision as of 05:46, 5 April 2015

Fragoria Map

Coordinates

Personal tools
Date/Time
Server & Cross

Super-Cross Server