Do / will old css and javascript links work?

16 views
Skip to first unread message

Brendan

unread,
Oct 26, 2015, 10:57:50 AM10/26/15
to Leaflet
Our media company uses leaflet for our maps and our archive stories use the following links to files that don't seem to be working today: 

<link rel="stylesheet" href="http://leafletjs.com/dist/leaflet.css" />

<script src="http://leafletjs.com/dist/leaflet.js"></script>

For the two new stories we published today I updated with this: 



And those stories work. But it seems the maps in old stories with the old java script and css files don't work. Are those old files being updated? Or would I have to update all old stories with the new files? 

ghybs

unread,
Oct 26, 2015, 1:33:30 PM10/26/15
to Leaflet
Hi,

It looks like Leaflet just removed the dist files from its website (your broken links).
Feel free to complain here if you think this is a mistake: https://github.com/Leaflet/Leaflet/issues

But there is a high chance this was done on purpose, to push people using the CDN instead (your 2 new links).
So you will very probably have to update all your old pages, sorry…

If you have compatibility issues with the new version, you could retrieve previous versions by trying to find the appropriate link on Leaflet CDN.
The previous link scheme is: http://cdn.leafletjs.com/leaflet-0.7.5/leaflet.js
But you will need to know which version you were previously using.

It looks like CloudFlare also provides such previous versions of Leaflet:
http://cdnjs.com/libraries/leaflet

Hope this helps.
Reply all
Reply to author
Forward
0 new messages