When I add a polygon, the entire area of the map is filled, and the polygon is “cut” out of it. I expect a simple polygon to be rendered. Here is a live example https://codesandbox.io/s/lsz8qh This is my topojson ` rendering now what polygon i expect to see Answer Because the coordinates in the array are counterclockwise if positioned clockwise,
Tag: maps
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
JS: Nested Maps
I was trying to implement a [Wordle][1] assistant in JavaScript. I am new to JS, and I am sure the following is trivial, but maps are still confusing me. Suppose I have: How can I have the counts of unique items in the following format: (Would I do better with a different data structure?) (These are calculated values, so I
Compare 2 maps in JavaScript
i want to ask if it’s possible to do this: I want to compare these 2 maps. I want to have a console.log() with the deferences of the maps. Finally if the maps are the same and i add in map1 a new set I want a log to tell me which is the new pair of kay-val Thank you
Tooltip in leaflet.js flickers so users can’t click on link inside it
I am using bindTool tip to create pop up elements with html and links within them in Custom options I have the following EDIT – There is flickering when the tooltip is hovered over – it appears to be activating mouseover and mouseout at the same time. I am working on this project in a glitch project here / Code
How to convert Map key values into array in JavaScript
I have a Map that contains keys and their value. I want to convert all keyvalues into an array I want that my new array should look like this Answer this will do
HERE map controls not loading in React
I’m trying to display zoom in and zoom out control in HERE maps in React. I’ve followed the steps mentioned in the documentation, but I’m not getting any help from there. I’ve followed everything in the link: https://developer.here.com/tutorials/react/ My map component link: https://gist.github.com/pranay414/84f5fe4ed1b704c1ff34409a957c37d7 This is the error message I’m getting: Answer I’m trying to display zoom in and zoom out
Which projection is Mapbox using
I have UTM coordinates, EPSG: 25833. Looking at the Mapbox documentation it says Mapbox supports the popular Web Mercator projection, and does not support any other projections. Web Mercator is a nearly conformal projection that is adopted by the vast majority of web maps and its use allows you to combine Mapbox’s maps with other layers in the same projection.