Tag Info

New answers tagged

0

Outside of polling for size changes, there isn't a way to detect a resize of a <div>. I usually use absolute positioning on the map container and let Leaflet handle resize automatically. Like this: http://jsfiddle.net/asnyder14/0gsfdxeg/


0

A solution to this problem that I found is instead of configuring the attribute, select add link under the Pop-up Media option. From there for some reason it will take a link with spaces in it.


0

Having spaces in files and paths is bad practice and makes it difficult for applications to read/process. The best and easiest fix is to remove all the spaces in your files and directory paths. You can replace the spaces with an underscore "_" which allows for readability. If you need a tool to batch rename/remove "things" from a file(s) you can use a free ...


0

OK Guys and Girls, I think toms pretty much nailed the problem. The site was running locally on my PC, i edited the html,css and javascript with an editor and opened the html dircetly in the browser. Only Firefox displayed the zipped shapefile. The problem seems to stem from the fact that only Firefox allows locally hosted files, which took me quite a ...


0

Are you running this locally? In the Chrome console (F12) I get a cross origin error on your zipped shapefile when trying to open index.html from the file system. XMLHttpRequest cannot load file:///C:/Users/web/kaystros_osm_Project.zip. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, ...


1

try .leaflet-popup-content img { margin: 0 auto; display:block; }


1

Since both mapbox.js and cartodb.js include leaflet, you are attempting to load leaflet twice. Mapbox has a "standalone" version of their library that doesn't load include leaflet, so loading this plus cartodb.js makes everything work. I also added a .setZIndex() to the cartodb layer to make it show up on top. The code below should work for you! ...


0

How many layers do you have in your viz.json? Are you getting any errors in the console? I believe using the cartodb.createLayer() method you might have to use a callback function to bring the Mapbox tile layer behind your data layer from CartoDB. Instead of adding the CartoDB layer to the map right away, add the layer in the callback function and then ...


0

Use OpenLayers or leaflet. Both are JS libraries and will do all the basic GIS stuff. leaflet : Openlayers 3



Top 50 recent answers are included