Skip to content

Commit

Permalink
Switch openstreetmap.community to use the data on the master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
bhousel committed Nov 19, 2019
1 parent a7c7d30 commit 0da4aa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
// wait for map to load before adjusting it
map.on('load', function() {
var previous = '';
var dataURL = 'https://cdn.jsdelivr.net/npm/osm-community-index@1/dist/combined.min.geojson';
var dataURL = 'https://cdn.jsdelivr.net/gh/osmlab/osm-community-index@master/dist/combined.min.geojson';

map.addSource('osm-community-index', { type: 'geojson', data: dataURL });
map.addLayer({
Expand Down Expand Up @@ -118,7 +118,7 @@
var inner = '';
communities.forEach(function(c) {
var community = c.community;
var iconURL = 'https://cdn.jsdelivr.net/npm/osm-community-index@1/dist/img/' + community.type + '.svg';
var iconURL = 'https://cdn.jsdelivr.net/gh/osmlab/osm-community-index@master/dist/img/' + community.type + '.svg';

inner += '<div class="resource">'
+ '<img class="icon" src="' + iconURL + '"/>'
Expand Down

0 comments on commit 0da4aa6

Please sign in to comment.