Skip to content

Commit

Permalink
update tile used by open infrastructure maps
Browse files Browse the repository at this point in the history
The openinframaps have switched to vector tiles and the old raster tiles have been deprecated. The tile had to be updated based on openinframap.org/map.json

fixes publiclab#147
  • Loading branch information
rkpattnaik780 committed Mar 21, 2019
1 parent 995a64b commit e086fb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,19 @@
var MapKnitter = L.layerGroup.mapKnitterLayer() ;
var ToxicRelease = L.layerGroup.toxicReleaseLayer() ;

var OpenInfraMap_Power = L.tileLayer('https://tiles-{s}.openinframap.org/power/{z}/{x}/{y}.png',{
var OpenInfraMap_Power = L.tileLayer('https://openinframap.org/tiles/{z}/{x}/{y}.pbf',{
maxZoom: 18,
attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, <a href="http://www.openinframap.org/about.html">About OpenInfraMap</a>'
});
var OpenInfraMap_Petroleum = L.tileLayer('https://tiles-{s}.openinframap.org/petroleum/{z}/{x}/{y}.png', {
var OpenInfraMap_Petroleum = L.tileLayer('https://openinframap.org/tiles/{z}/{x}/{y}.pbf', {
maxZoom: 18,
attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, <a href="http://www.openinframap.org/about.html">About OpenInfraMap</a>'
});
var OpenInfraMap_Telecom = L.tileLayer('https://tiles-{s}.openinframap.org/telecoms/{z}/{x}/{y}.png', {
var OpenInfraMap_Telecom = L.tileLayer('https://openinframap.org/tiles/{z}/{x}/{y}.pbf', {
maxZoom: 18,
attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, <a href="http://www.openinframap.org/about.html">About OpenInfraMap</a>'
});
var OpenInfraMap_Water = L.tileLayer('https://tiles-{s}.openinframap.org/water/{z}/{x}/{y}.png',{
var OpenInfraMap_Water = L.tileLayer('https://openinframap.org/tiles/{z}/{x}/{y}.pbf',{
maxZoom: 18,
attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, <a href="http://www.openinframap.org/about.html">About OpenInfraMap</a>'
});
Expand Down

0 comments on commit e086fb9

Please sign in to comment.