Questions tagged [javascript]
JavaScript is a prototype-based, object-oriented scripting language that is dynamic, weakly typed and has first-class functions.
3,340 questions
0
votes
1
answer
31
views
How to get all parts of buildings from OSM buildings data?
I'm trying to create an OSM buildings data extract for downtown Chicago. I spotchecked a couple buildings in the extracted data, and am unable to figure out why certain parts of the OSM data are not ...
3
votes
1
answer
173
views
Downloading the on-hover polygon outline in GeoJSON format
On @Xavier Jubier's Eclipse website, there is an option to see the lunar shadow at the given moment of the eclipse when clicking on the location. It looks like below:
Unfortunately, there is no way ...
3
votes
1
answer
482
views
Generate random lon/lat coordinate anywhere on the map
I want to generate a random coordinate that would display anywhere on the map.
I've seen these two posts:
Generating random lat/long coordinates
And using this post for the JavaScript code: https://...
1
vote
1
answer
172
views
Deleting segment from polygon and split it into polyline or polyline into two polylines in Leaflet?
What I'm trying to do is have a button to delete a segment from a polygon, or a segment from a polyline. I tried attaching an eventlistenner to each segments I find in the in the drawnItems. I take ...
-1
votes
1
answer
130
views
Php or javascript libraries for GIS calculations
I am presently doing all my computing in QGIS. Once all complete I export my point, line and polygon data in geojson for ultimate use with MapBox and Leaflet. I would like to automate my calculation ...
0
votes
0
answers
178
views
Creating constrained Delaunay triangulations for polygons
I have a set of polygons, some of them are connected, but most are not. Some of them are convex, some are not.
Now I want to build a navigation mesh based on the polygons, and I find most of the ...
0
votes
1
answer
54
views
How to discard midpoints or only get borders of polygon
I have a List of LatLng objects that I use to make a polygon to represent a road with a buffer, but sometimes exist returns as next image:
shared typescript implementation:
The points in this area ...
0
votes
2
answers
317
views
MapLibre JS Side by Side 2 Maps Sync
Previously I developed a map portal using Leaflet. I want to use MapLibre JS now. It has two same maps side by side like the following UI. The main functionality is to pan and zoom the map at the same ...
0
votes
0
answers
2k
views
How to display PBF tiles on MapLibre GL JS
I am new to MapLibre, I used to work a lot with Leaflet.
I am trying to display PBF vector tiles generated from QGIS, which I cannot display with Leaflet (I have errors trying to use Leaflet....
0
votes
1
answer
1k
views
JavaScript formula to convert WGS84 lat, long values to RD_New co-ordinates [closed]
I have a requirement in my project to convert WGS84 GPS format co-ordinates to RD_New co-ordinates
WGS84(E,N): 51.998929,4.375587
RD(X,Y): 85530,446100
I see some online tools and Proj4 js ...
0
votes
1
answer
734
views
Get Other Widgets in ArcGIS Experience Builder setting UI
I am creating a custom widget in ArcGIS experience builder and am trying to get a list of all the widgets currently defined in the setting UI.
I tried using the widget state to transfer the list, as ...
0
votes
0
answers
64
views
PopUp not showing
I'm trying to show some attributes by popup, following a YT video, but cant seem to get it working. Please help me understand what am doing wrong..(features stored in geoserver)
The code is
Index.html
...
0
votes
1
answer
307
views
Display route layer between current user location and geocoded search locaton in Leaflet?
I would like to create a simple Leaflet app that zooms to the user location, and also to a location defined within the geocode search bar. Secondly, the app should show the shortest route between the ...
0
votes
0
answers
403
views
3D modelling with DEMs and ThreeJS
I am trying and right now in the search of methods to visualize 3D terrain with the use of the JS framework "ThreeJS" and so far I have only got through to visualizing with the QGIS2threeJS ...
1
vote
1
answer
260
views
Filtering clouds and creating median with Google Earth Engine Landsat8 EVI Composite
I am downloading images from Google Earth Engine's Landsat 8 Collection 1 Tier 1 8-Day EVI Composite collection here. I would like to create one image, a median composite of the images from May 1st to ...