Skip to content
Advertisement

Tag: geojson

Convert bbox coordinates to geoJSON

Hello I have a array of coordinates that look something like this: [14.540536348680394,65.03068471588048,18.945463651319603,66.82731528411952] I need to properly display it on my openlayers map but it seems like I must convert the bbox to a valid geoJSON object first. Is there a fuction I can write or a library that can do this for me? Or is there any work arounds

leaflet load markers and pop ups from external file

I am currently building a leaflet map where I will implement a bunch of markers with popups. I want all of my markers and popups stored in an external file to keep the code as clean as possible. My question is, how can I achieve this? Do I create a geojson file with the markers and popups and if so,

Mapbox JS GL: Filter points by features

I have a mapbox map that displays a number of points from a GEOJson source with several features and independent categories. I want to be able to filter by these features. Ideally when I click on a checkbox filter only the relevant points should remain visible on the layer. So I guess after a click on a checkbox the map

How does one merge coordinate values of an array of geojson items?

Hello I am working with a large geojson dataset, and I am trying to see if I can merge the coordinate values of each entry based on entries that share the same “User_ID”. My dataset look like this: I have tried to merge the entries using the method shown in mwarren’s answer, url: “https://stackoverflow.com/questions/29244116/merge-geojson-based-on-unique-id”. Yet this comes with the small

How to make to drawing a SVG with D3.js?

I’m trying to draw a map in an SVG with the GEOJSON data that I bring from this API, the SVG paths are filled with the data, however, the SVG is blank, as can be seen when executing the code below. Notice the document.write, the data is returned correctly. I tested it with another GEOJSON file, and managed to draw

GeoJSON file: Refused to execute script from because its MIME type (”) is not executable, and strict MIME type checking is enabled

My web application has a folder named “data” which has .geojson files. When I tried to access my website from Chrome I can see all .geojson files loaded with “200 OK response” Please find below screenshot. But when I see console logs I am getting “Refused to execute script from because its MIME type (”) is not executable, and strict

Advertisement