Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
61 views

performing arithmetic on GeoJson

I am trying to add a marker to the left/right of a point I have from a GeoJson object. I am trying to take my coord and subtract 0.00001 from it, but it errors out my code when I try to run it. I ...
Jack Lindsay's user avatar
0 votes
1 answer
701 views

Add a user inputted location to OpenStreetMap using Leaflet.js

I am trying to create a map of user-inputted locations, however to do this I need to convert inputted cities into their latitude and longitude. This allows me to easily plot them using Leaflet.js ...
mysterykid's user avatar
1 vote
1 answer
2k views

how to make access tokens in leaflet.js API

why am i not able to get the map on the canvas how can i access token for an API enter image description here <!DOCTYPE html> <html lang="en"> <head> <meta ...
sankirtana gv's user avatar
1 vote
1 answer
128 views

How can I make transitions between dc.js charts smooth when I have a map with more than 20k points?

I've recently built a smaller version of a prototype data explorer incorporating crossfilter, dc.js, and leaflet.markerCluster. The small version, (prototype dashboard), works properly. The problem I ...
Jeff Lean's user avatar
0 votes
1 answer
391 views

JavaScript code will not output geojson data onto leaflet map

I am trying to output geojson data onto a leaflet.js map but the console output in browser outputs the following line: "Uncaught TypeError: Cannot read property 'features' of null" The geojson has ...
Nathan R. Deering's user avatar
1 vote
1 answer
49 views

dc.js (version 3.0.7) - unable to plot rangeChart ('focusChart' of undefined error)

I am having trouble plotting a rangeChart for my lineChart. d3.tsv("demo.tsv").then(function(someData) { drawMarkerSelectsome(someData); }); function drawMarkerSelectsome(someData) { parseDate =...
Shaibal Ahmed's user avatar
1 vote
1 answer
162 views

Doing calculations with dc.js numberDisplay

I would like to make further calculations from the values of two separate numberDisplays in dc.js Here's the code, function makeGraphs(data) { xf = crossfilter(data); all = xf.groupAll(); ...
Shaibal Ahmed's user avatar
3 votes
1 answer
604 views

dc.js, prevent pie chart external label overlap

I am not able to show labels properly for the cases where group values are very close together so the labels tend to overlap. I have tried minAngleForLabel. What else can be done here? The code for ...
Shaibal Ahmed's user avatar
6 votes
2 answers
5k views

How to make a tiled image pyramid for leaflet from a non-geographic source

Suppose I have a non-geographic image instead of a usual map. Let's say for example an x-ray, MRI scan or microscope image and I would like to use leaflet so I could zoom-in, zoom-out and put some ...
Aenaon's user avatar
  • 3,593
0 votes
1 answer
696 views

Possible to use LayerGroup for GeoJSON Polygons, MultiLineStrings and LineStrings?

In the leaflet.js documentation an example with layers of markers is documented. I would like to create a layer of polygons in GeoJSON format. Is this possible? I've defined a variable for each ...
Saud 's user avatar
  • 490
1 vote
0 answers
835 views

reset all values of pie chart and map while click on reset option in dc.js

i have dc.js chart with marker cluster all are linked together but my reset option(which i used to redraw the whole values again) is not working and there it is also not showing any console error.i am ...
user7843669's user avatar
3 votes
1 answer
9k views

Leaflet.js geoJson labels

I'm using a geoJson layer with Leaflet.js, showing countries here. I'm adding country labels with the following: L.marker(layer.getBounds().getCenter(), { icon: L.divIcon({ className:...
Alex's user avatar
  • 73
0 votes
1 answer
294 views

filterAll(); not working with leaflet map

I'm trying to reset a leaflet map (to its original view) after clicking on a marker using: <h5>Location <a class="reset" href="javascript:mapLocation.filterAll(); dc.redrawAll();">reset&...
mutanthumb's user avatar
1 vote
2 answers
788 views

Dc.js leaflet marker popup showing fields from input data

I'm a dc.js novice working on a dashboard displaying information on charts and a map. I'm currently unable to display information on the marker popup window besides the default, which seems to be a ...
zanmatt's user avatar
  • 35
1 vote
0 answers
4k views

leaflet.js marker-icon-2x and marker-shadow.png not loading

is it possible to use a custom icon on my Leaflet map? I tried to do something like : function onLocationFound(e) { var radius = e.accuracy / 2; var customIcon = L.icon({ ...
AISAC's user avatar
  • 931

15 30 50 per page