[aprssig] Google maps
Andrew Rich
vk4tec at tech-software.net
Fri Jul 1 18:19:59 EDT 2005
place an icon on a map
// Create our "tiny" marker icon
var icon = new GIcon();
icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
icon.iconSize = new GSize(12, 20);
icon.shadowSize = new GSize(22, 20);
icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(5, 1);
// Center the map on Palo Alto
var map = new GMap(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.centerAndZoom(new GPoint(-122.141944, 37.441944), 4);
// Creates one of our tiny markers at the given point
function createMarker(point) {
var marker = new GMarker(point, icon);
map.addOverlay(marker);
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml("You clicked me!");
});
}
// Place the icons randomly in the map viewport
var bounds = map.getBoundsLatLng();
var width = bounds.maxX - bounds.minX;
var height = bounds.maxY - bounds.minY;
for (var i = 0; i < 10; i++) {
createMarker(new GPoint(bounds.minX + width * Math.random(),
bounds.minY + height * Math.random()));
}
-----Original Message-----
From: Steve Dimse [mailto:steve at dimse.com]
Sent: Saturday, 2 July 2005 3:25 AM
To: TAPR APRS Mailing List
Subject: [aprssig] Google maps
On Jul 1, 2005, at 12:55 PM, Steve Dimse wrote:
> Steve could have, but he was backpacking in Kings Canyon/Sequoia
> National Parks and attending the Monterey Blues Fest.
Also, for the 43 of you (literally) that sent me the link to the new
Google Map API or news stories about it, yes, now that they have
terms that will allow findU to use it, I will be adding that
capability, but give me a day or two to unpack!
Steve K4HG
_______________________________________________
aprssig mailing list
aprssig at lists.tapr.org
https://lists.tapr.org/cgi-bin/mailman/listinfo/aprssig
More information about the aprssig
mailing list