Skip to main content

Questions tagged [javascript]

JavaScript is a prototype-based, object-oriented scripting language that is dynamic, weakly typed and has first-class functions.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
19 views

Popular touristy places in searched country

I am building a travelling app in react and I need to create a fetch function for fetching data about the most popular tourist attractions in searched country I want to pass countryName as parameter ...
Anar Talibov's user avatar
-1 votes
0 answers
31 views

GeoServer "Browse..." function is not working

I am working through the GeoServer tutorial located at this page: https://docs.geoserver.org/stable/en/user/gettingstarted/geopkg-quickstart/index.html I am using the latest update of Google Chrome (...
Georgia Slim's user avatar
0 votes
0 answers
15 views

Sample NDVI time series for points and retaining the unique point ID in Google Earth Engine

In Google Earth Engine, I have a feature collection of points with one column that is the "Feature Index". Now I am extracting time series for every point. How can I retain the "Feature ...
k_m's user avatar
  • 3
0 votes
0 answers
27 views

Autolisp & JavaScript convert Lat/Long to X(Easting) Y(Northing)

I'm wanting to create a BricsCAD script which takes Lat/Long WGS84 and converts it into the BNG Easting/Northing Similar to Grid Reference Finder, Webapps BGS Converter & Google Earth's long/lat ...
Josh's user avatar
  • 1
0 votes
0 answers
22 views

Taking screenshot of area selected on Google Maps and saving it to upload file in Flask [duplicate]

I want to take a screenshot from selected area and save static/uploads folder under the python/flask project using Google Maps APİ. How can I do it? my html code: <!DOCTYPE html> <html lang=&...
Okty Ycl's user avatar
0 votes
0 answers
46 views

Taking screenshot of area selected on Google Maps and saving it to upload file in Flask

I want to take a screenshot from selected area and save static/uploads folder under the python/flask project using Google Maps APİ. How can I do it? my html code: <!DOCTYPE html> <html lang=&...
Okty Ycl's user avatar
0 votes
0 answers
43 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 ...
giser's user avatar
  • 761
0 votes
1 answer
40 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 ...
tracking Systems's user avatar
0 votes
0 answers
44 views

Creating Bezier Polygons (Spline Polygons) using Survey123 for Arboriculture Surveys

I’m working on a Survey123 survey to capture the tree canopy based on the centroid (Lat, Long), Norh, South, East and West distances in meters. The idea is the mobile worker locates a point in the map ...
GaliGIS's user avatar
  • 39
0 votes
0 answers
63 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 ...
Devils Dream's user avatar
  • 3,189
0 votes
0 answers
485 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....
Arkeen's user avatar
  • 363
0 votes
1 answer
339 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 ...
Priya Ganesan's user avatar
0 votes
1 answer
245 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 ...
Dror Bogin's user avatar
  • 3,555
0 votes
0 answers
40 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 ...
SaFaL's user avatar
  • 19
0 votes
1 answer
95 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 ...
Samuel Gachuhi's user avatar
0 votes
0 answers
100 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 ...
DilankaMunasinghe's user avatar
1 vote
1 answer
161 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 ...
Lavendarfire's user avatar
0 votes
0 answers
58 views

Deck GL set MVT point layer icon faces camera

I'm attempting to set the MVT layer icon to faces camera in Deck GL (version 8.8). Currently, I use first person view and MVT layers. The problem is that currently the points faces up. I would like ...
zsoooc's user avatar
  • 349
0 votes
1 answer
99 views

Tippecanoe | Can't set max zoom extent level 22 for mbtiles

I know this might be a duplicate question but I wasn't able to find any solution. I'm working on a tool with the help of this package which is actually a platform to convert a geojson file to mbtiles ...
msc's user avatar
  • 11
0 votes
1 answer
115 views

How to annotate features in google earth engine?

I have a CSV file with ID, X, Y, NAME and ZoomLabel. I have been successful with putting the Point Feature on the map. Now I am trying to annotate the locations with the NAME field. I used the ...
Sakshi Sarang's user avatar
0 votes
0 answers
74 views

Create custom layout with OpenLayers

As a side project, I am learning to work with OpenLayers and I am trying to replicate the layout that is shown in these type of maps (see attached image) I have started to play with the JS following ...
GCGM's user avatar
  • 1,118
0 votes
0 answers
104 views

Error while creating Worker Pools in GeoTIFF

I have to extract rasters from a large TIFF file (about 8MB). For this purpose I use GeoTIFF v.2.0.7 readRasters, but performance is unsatisfying: reading rasters took: 395143.48280000035 ms As a ...
Michał Dubrowski's user avatar
1 vote
1 answer
84 views

Initial zoom to GeoJSON object from file (.js) in Leaflet

I am building a viewer with Leaflet API and OpenStreetMap base. I want that when I enter this viewer it shows me immediately in the initial visualization the extension of my layer that I am using. For ...
MrShaggy87's user avatar
0 votes
1 answer
32 views

Image Collection containing orbits not related to the defined boundary

I tried to download all the images in ImageCollection for methane emission (in a specific timeframe and for a defined location)and check their orbits. Even though I've added filterBounds, there are ...
Parisa Masnadi's user avatar
0 votes
0 answers
47 views

Style in OpenLayers shows invalid characters on some computers

I have a layer in OpenLayers, which I style for font color. However, on some computers, the texts show with special characters, a blurred, confusing text that cannot be read. In others, without any ...
user12538529's user avatar
0 votes
1 answer
121 views

Unable to export time series from MODIS NDVI in GEE as transforming geometry into requested projection not working

I am trying to acquire MODIS NDVI (MOD13Q1 v061) time series using Google Earth Engine for certain locations for which I have the coordinates. My code looks as follows: ////////// Input // Specify ...
Toni's user avatar
  • 3
0 votes
1 answer
112 views

JavaScript libraries to visualize CityJSON data

I am looking for JavaScript libraries that allow you to visualise cityJSON (https://www.cityjson.org/) data. I am currently using cityGML with Cesium JS (https://cesium.com/platform/cesiumjs/), but ...
Yoya01's user avatar
  • 39
1 vote
0 answers
77 views

Displaying WMS on demand directly from webgis app

I’m making a webGIS app based on Cesium Js. I have a node js server for all the server logic, a tomcat server hosting GeoServer to be able to load WMS layer on Cesium. On my app I want to allow the ...
Nicolas Guibal's user avatar
1 vote
1 answer
74 views

Browser hangs while parsing georaster in geoblaze

I've been trying to create a histogram using geoblaze with a COG from s3. The georaster is as follows: (generated with geoblaze.parse(url)) { _data: '==hidden==', projection: 32618, height: ...
Snape's user avatar
  • 11
0 votes
1 answer
275 views

.getImage() generates error in geotiff.js

i am using geotiff.js lib to perform some processing on tiff files. referring to the official doc of the aforementioned lib here https://github.com/geotiffjs/geotiff.js you can see in section Example ...
Amrmsmb's user avatar
  • 305
1 vote
2 answers
804 views

Converting shapefiles from S3 to GeoJSON in JavaScript for web map

I am working on a web map using OpenLayers and have encountered a challenge in converting shapefiles stored in an S3 bucket to GeoJSON using JavaScript. My goal is to display the converted shapefiles ...
JNN's user avatar
  • 135
-1 votes
1 answer
107 views

Create KML file from Metro Dreamin map

I am wondering if there is an easy way to create a KML file from a Metrodreamin.com map; perhaps from a JSON file. Ideally I would like to do this from an Ipad. However I have acess to a Windows ...
David Martin's user avatar
0 votes
1 answer
1k views

TypeError: a.union is not a function

I'm trying to get the union of two polygons but every time I try I get a TypeError: a.union is not a function error. Here's my code: import GeoJSONReader from 'jsts/org/locationtech/jts/io/...
neubert's user avatar
  • 370
1 vote
1 answer
202 views

geotiff.js - Elevation at point in DEM raster seems to be null or zero

When reading COG (Cloud Optimized GeoTIFF) or original GeoTIFF of a DEM/DTM (elevation map) file using Geotiff.js directly or geoblaze, elevation at a point through conversion of coordinates to pixels,...
Michael Jernil's user avatar
1 vote
1 answer
126 views

Google Earth Engine ui.Chart.getDataTable() returns empty list

I am trying to grab the underlying data from a chart in GEE. It looks like there is a built in method for this: ui.Chart.getDataTable(), however it appears to not work. I've tried on multiple charts. ...
yeet_man's user avatar
0 votes
2 answers
84 views

OpenLayers 7 WFS 1.1.0 not drawing polygons when srsName contains opengis.net/gml/srs/epsg.xml

I'm writing a web app that uses WFS data on top of OpenLayers with OpenStreetMap. The entire project works in EPSG:2180 projection and uses multiple versions of WFS (depending on server). OL doesn't ...
T3chnoM4ciej's user avatar
0 votes
1 answer
2k views

Converting lat/long coordinates to UTM using JavaScript - wrong easting

I am trying to convert these coordinates to UTM const longitude = 143.5279742; const latitude = 44.062027; // Calculate the UTM coordinates const zoneNumber = Math.floor((longitude + 180) / 6) + 1; ...
hbk's user avatar
  • 434
1 vote
1 answer
702 views

How to get attributes of Web Map feature which user clicked on in custom widget in ArcGIS Experience Builder application?

I have an ArcGIS Experience Builder application, which uses a Web Map I host in ArcGIS online. This Web Map contains a feature layer with several attributes, and I can use these in Experience Builder ...
work2023's user avatar
4 votes
1 answer
365 views

Populating Google Maps using QGIS exported GeoJSON

I am populating a Google map using GeoJSON that I'm exporting with QGIS. I'm converting the TIGER shapefiles into GeoJSON for state polygons. I used the standard output, and received the file. My ...
arcee123's user avatar
  • 389
1 vote
0 answers
155 views

Extracting elements plotted on OpenStreetMap canvas

I found a very nice website with eclipse maps, which example can be found here: http://ytliu.epizy.com/eclipse/solar_eclipse_interactiveMap.html?ybeg=2001&ind=55&dT=69.49500924568443&k2=...
Geographos's user avatar
  • 4,029
0 votes
1 answer
428 views

Pushing Foursquare's Swarm Check-In Data into a Google Maps Service

I've been using FourSquare's Swarm app to track my travels. I'd like to be able to plot the check-in locations on a Google Maps service (or any other web-based service outside of the Swarm App). I've ...
b-rad-b's user avatar
  • 509
0 votes
1 answer
197 views

How to move and rotate WMS layers independently using OpenLayers (without GeoServer)

There are maps on OpenLayers 6 and proj4js that manages WMS layers in different projections. Sometimes (e.g. for plan maps) the overlay is not aligned with base layer and a need a function that can ...
neadmin's user avatar
0 votes
1 answer
462 views

MODIS LST time series for daily average

I am trying to compute and plot the linear regression model for MODIS terra LST values. I have successfully plotted the "LST_Day_1km" band by using the following code: var terraD = ee....
Ali Turab Hani's user avatar
1 vote
1 answer
234 views

Leaflet shapefile plugin doesn't show the shapefile layer

I'm trying to use the Leaflet Shapefile plugin (https://github.com/calvinmetcalf/leaflet.shapefile). A demo page also shows the plugin's output (http://calvinmetcalf.github.io/leaflet.shapefile/). I ...
Melanie's user avatar
  • 159
0 votes
1 answer
439 views

Reg Google Earth Engine code editor suggestion tooltip

When I try to create or copy geometries in GEE editor, I am not getting suggestion tooltip to convert geometries into import records. Its working for my other Gmail account. Having issue with other ...
Santu Ganiger's user avatar
0 votes
0 answers
78 views

Polygon will not display in angular / JavaScript layer

I have allowed the user to draw a polygon and save the points to Firestore. When the page loads, Firebase retrieves the polygon coordinates relevant to a location. When I create the polygon rings ...
Karl Ennis's user avatar
1 vote
1 answer
113 views

Why can I add data as a map layer, but not be able to export it in GEE?

I have put together a script in earth engine with the purpose of producing an NDVI max time-series collection with relevant masks applied from 1984-2022, then reducing this using Kendall's correlation ...
Jack S Marchant's user avatar
0 votes
1 answer
75 views

How to calculate the burnt area for each rectangle in the grids specified and save in CSV

I am new to the Google Earth Engine. I am trying to calculate the burnt area for this gridded region (dividing the region into 24 x 24 grids), and save the area in a CSV file. But I am unable to get ...
Abdur rasheed's user avatar
1 vote
1 answer
390 views

Select bounding box Earth Engine

I am trying to select a particular region (square) on map of ERA5 dataset but ee.Geometry.BBox instead add the layer on the whole map instead of that squared region. I have region coordinates inside ...
pwnkit's user avatar
  • 17
1 vote
1 answer
106 views

WMS XML file does not have "contents" tag

I'm trying to use WMSLayer (https://developers.arcgis.com/javascript/3/jsapi/wmslayer-amd.html) to create a layer from a WMS file. However, the class makes a call to https://www.geoservicos.ide.df.gov....
Marco Antônio de Lima Costa's user avatar

1
2 3 4 5
68