34
questions
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 ...
0
votes
1
answer
611
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 ...
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 ...
1
vote
1
answer
125
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 ...
0
votes
1
answer
388
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 ...
1
vote
1
answer
48
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 =...
1
vote
1
answer
157
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();
...
3
votes
1
answer
599
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 ...
6
votes
2
answers
4k
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 ...
0
votes
1
answer
694
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 ...
1
vote
0
answers
831
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 ...
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:...
0
votes
1
answer
292
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&...
1
vote
2
answers
784
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 ...
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({
...