Yahoo! Snap Maps
This is a general prototype to make as simple a map plugin as I can. This page contains a simple script tag that is replaced with a Yahoo! map.
(Tested on Firefox 2 and IE7)
the code is:
<script id="ysnapmap"
type="text/javascript"
src="http://unitedheroes.net/hacks/snapmap/snapmap.js"
zoom="city"
address="1060 W Addison Chicago IL 60613"
title='Last known residence of J&E Blues'
url='http://unitedheroes.net'
nearby="parking"
nearbyimg="http://unitedheroes.net/hacks/snapmap/blueflag.png"
</script>
Versions
Arguments:
- address: Location to map
- (defaults to sunnyvale campus)
- zoom: Level to zoom into:
-
- world,country,state,city,street,house (default: city)
- nearby: Look for stuff nearby.
- title:Title of the link (default: address of location) limited HTML allowed.
- url:Url to use for home title.
- addressimg: URL for "address" image
- nearbyimg:URL for "nearby" image
things to add:
- insert rollup for driving directions?
- add in flickr landmarks?