Vizzuality / gbif

1 stars 1 forks source link

add baselayers and parameterize the default #11

Closed timrobertson100 closed 11 years ago

timrobertson100 commented 11 years ago

Here are the base layers to add - the dark and light ones will change, but there will be an equivalent so the thumbnail will be the same - it might not be mapbox.

It would be ideal if it were possible to add a param to define the default shown. E.g. http://vizzuality.github.io/gbif/index.html?type?TAXON&key=212&style=ocean

ocean: 'http://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer/tile/{z}/{y}/{x}.png'
Attribution: Esri, DeLorme, FAO, USGS, NOAA, GEBCO, IHO-IOC GEBCO, NGS, NIWA

satellite: 'http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}.png'
Attribution: Esri, DeLorme, FAO, NOAA, DigitalGlobe, GeoEye, i-cubed, USDA, USGS, AEX, Getmapping, Aerogrid, IGN, IGP, swisstopo, and the GIS User Community

light: 'http://b.tiles.mapbox.com/v3/timrobertson100.map-s9fg80cf/{z}/{x}/{y}.png'
Attribution: Mapbox, <a href="http://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap and its contributors</a>

dark: 'http://b.tiles.mapbox.com/v3/timrobertson100.map-s9fg80cf/{z}/{x}/{y}.png'
Attribution: Mapbox, <a href="http://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap and its contributors</a>

grey-blue: 'http://2.maps.nlp.nokia.com/maptile/2.1/maptile/newest/normal.day.grey/{z}/{x}/{y}/256/png8?app_id=_peU-uCkp-j8ovkzFGNU&app_code=gBoUkAMoxoqIWfxWA5DuMQ'
Attribution: Nokia
matallo commented 11 years ago

fixed in https://github.com/Vizzuality/gbif/commit/ae05f43357278c2519edb54417fca26353fd528d