diff options
Diffstat (limited to 'demo6.html')
-rw-r--r-- | demo6.html | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -41,7 +41,13 @@ popupAnchor: [16, 0] // point from which the }); - getJSON("cafes.json", function(cafes) { + var url = "cafes.json"; + + if (document.URL.indexOf("file") === 0) { + url = "http://cbaines.net/maptime/cafes.json"; + } + + getJSON(url, function(cafes) { // Coffee icon from // http://mapicons.nicolasmollet.com/markers/restaurants-bars/bars/coffee/ |