Created
November 10, 2012 02:52
-
-
Save seanknox/4049649 to your computer and use it in GitHub Desktop.
Merch Mart OSM HTML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css">.olControlAttribution { bottom: 3px!important; }</style><script src="http://www.openlayers.org/api/OpenLayers.js"></script><script src="http://www.openstreetmap.org/openlayers/OpenStreetMap.js"></script><div id="map" style="width:500px;height:400px;"></div><script type="text/javascript">var map; function showMap(){ map = new OpenLayers.Map("map"); var mapnik = new OpenLayers.Layer.OSM(); map.addLayer(mapnik); map.setCenter(new OpenLayers.LonLat(-87.6365131,41.8883776).transform(new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913")), 12); map.addLayer(new OpenLayers.Layer.Markers()); var marker = new OpenLayers.Marker(map.getCenter()); marker.events.register("mousedown", marker, function(evt) { alert("Chicago\n222 West Merchandise Mart Plaza Chicago, IL 60654"); OpenLayers.Event.stop(evt); }); map.layers[map.layers.length-1].addMarker(marker); } showMap();</script><br><a style="font:7pt Arial;text-decoration:none;cursor:default;color:black;" href="http://www.map-generator.us/osm-maps.html">Generated by Map-Generator.us</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment