Advertisement
Guest User

Untitled

a guest
Feb 15th, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. function initmap() {
  2. map = new L.Map('map');
  3. new L.Control.GeoSearch({ provider: new L.GeoSearch.Provider.OpenStreetMap() }).addTo(map);
  4. var osmUrl='http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
  5. var osmAttrib='Map data © OSM contributors | Marker data © HistorySigns.com';
  6. var osm = new L.TileLayer(osmUrl,{minZoom:3,maxZoom:18,attribution:osmAttrib});
  7. map.setView(hull,11);
  8. map.addLayer(osm);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement