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

learn more… | top users | synonyms (1)

0
votes
1answer
141 views

Adding in multiple layers in OpenLayers 3

I am trying to add in the following two layers into my OpenLayers 3 map. The issue i'm having is that whichever one is written in last is the only one that is showing. I imagine there is a way to ...
0
votes
0answers
43 views

Adding shapefile from local drive to WebApp using ArcGIS API for JavaScript?

I want to add a shapefile of certain data to my WebPortal (which is currently running on Localhost) how can I do it? I'm using ArcGIS API for JavaScript.
0
votes
1answer
34 views

OpenGeo Suite - Possible to create input form

Is it possible to create a user input form such as a simple HTML form to take user input? The aim of this is to add the user input to the geom data in the DB.
0
votes
1answer
49 views

removeFrom(map) doesn't work

omnivore.wkt.parse("${feature}").removeFrom(map); I select features by this line omnivore.wkt.parse("${feature}").addTo(map); but when I remove from map doesn't work this code works but if I ...
0
votes
1answer
24 views

Features disappear when switching 2D to 3D?

I'm working on OL3-Cesium. Right now my main focus is to add parallel lines to a given line string. That's working perfectly fine in 2D view. But as soon as I switch to 3D view, the parallel lines I ...
0
votes
0answers
46 views

Refresh map after updating chart elements

I need to refresh an openlayers map after updating the size of pie charts in a mapfile displayed on the map (on button click). I cannot refresh the whole page or I lose the data. It works when I ...
1
vote
2answers
159 views

How do I embed the a Leaflet map into my web page, using QGIS2Leaf?

I am generally new to web developement, and web gis for that matter, but I want to embed a leaflet map that I made in QGIS using the QGIS2leaf pluggin, into the html of my webpage, but am having ...
0
votes
1answer
31 views

How do I use filters on multiple layers in Kartograph?

I am trying to create a map of the continental US and Puerto Rico using Kartograph. I am using the shapefiles from Natural Earth, and I obtained the filter keys from the column headers of the DBF ...
0
votes
1answer
98 views

Create a polygon from an array of coordinates in arcgis javascript api

Well I am building a GIS web app using ArcGIS Javascript API , I want to create a user interface in which the user provides an array of coordinates and I have to get those coordinates and create a ...
2
votes
1answer
51 views

X and Y after Albers lat and lon transformation

that is probably a very obvious question but it is melting my brain: when transforming lat and lon to [x,y] (for instance using this code https://gist.github.com/RandomEtc/476238) I get the ...
0
votes
0answers
16 views

Which open source lib to choose from gxp attached with open geosuite 4.5 , heron or core geoext?

My requirements are WMS , WFS-T (editing), printing map, styling , able to edit layout to make a consistent template for application. text search , search by geometry, query , multi-layer ...
0
votes
1answer
67 views

How to protect the loaded json file name and location using html5 and javascript?

The data of markers (not the map) is stored in a json/csv/js file. We want to show all data as markers on the map. But how to protect the raw data file from public access? Following the example on ...
0
votes
0answers
44 views

“require” is not defined in GeoServer's community scripting extension (Javascript)

I'm attempting to use GeoServer's Community Scripting Extension for JavaScript. I've installed it according to the instructions, and when I try to reproduce the WPS Hook example, I receive the ...
2
votes
0answers
147 views

open-source code for the map matching algorithm

For map matching of the GPS data to the network data, there is a algorithm from Schussler, N. & Axhausen, K. (2009a). Is this algorithm released under open-source license ? Where can I find this ...
1
vote
1answer
159 views

Google bathymetry service with OpenLayers Mouse Position

After searching for some days I decided to post this question here, hope someone else can give me some hints about a doubt I have. The thing is that I would like to use the Google Bathymetry Service ...
1
vote
1answer
104 views

Load external geojson file into leaflet map

Have studies this thread but not getting desired result. My index.html looks like this: <!DOCTYPE html> <html> <head> <meta charset=utf-8 /> <title>GeoJSON ...
1
vote
1answer
118 views

How to add custom basemaps to BasemapGallery

I would like to add my own custom basemaps to the BasemapGallery. Is there any way I can create my own BasemapGallery with only my maps? I am using the ArcGIS API for javascript. EDIT: for clarity I ...
1
vote
1answer
50 views

Select / Drag or by rectangle CMV Application

Anyone able to suggest to this noob if there is a way to change the selection option in my CMV application from individual polygons (one at a time) to an option of selecting multiple polygons at once ...
0
votes
1answer
44 views

Tips for learning to work with geoserver in Javascript

After succesfully being able to work with the ArcGIS Javascript API in a webpage I want to learn to work with Geoserver. I have downloaded Geoserver and uploaded one shapefile. Now I am trying to call ...
0
votes
0answers
145 views

Getting pixel coordinates of an image overlay using leaflet map library on click (right click)

I'm trying to get the pixel coordinates of an image overlay on click (right click/contextmenu) using the leaflet map library. Essentially when a user clicks on the image, I need to find the x,y or ...
0
votes
0answers
188 views

Add cluster marker into google maps fusion table?

I try to add a cluster markers to this code but when I add some var to the code, the maps can't load. Then, when if (is mobile) deleted, it also can't show that maps. Sorry, I'm a newbie, maybe ...
0
votes
0answers
55 views

Leaflet-image draw legend

I'm using the mapbox leaflet-image plugin to allow users to save images of an app I'm making for a client. It works great with this setup: Callback function on click event... leafletImage(map, ...
0
votes
1answer
49 views

Can KML layer order be set in the CMV

I just started exploring the CMV about a week ago as an option to replace our Flex Viewer based configurable web mapping applications. So far it seems to be meeting all our needs however I have run ...
0
votes
1answer
11 views

In embedded map - can I temp disable all hoverwindows while any infowindow is open

I have CartoDB map with hover and infowindows for 1000 polygons. When user click we want to open infowindow for processing (update able form) and want: stop hover windows from working until user ...
0
votes
1answer
51 views

How to join a WFS layer to a table in OpenLayers

So I have to bring up this old question How to join a WFS layer to a stand-alone table in OpenLayers I recently have to get this working, I have to join a WFS layer data from GeoServer using postgis ...
1
vote
1answer
196 views

Get WFS layer from GeoServer to OpenLayers 3

I am creating a web map application for a website. I am using GeoServer 2.6.2 and OpenLayers 3.2. I have not problems with WMS layers, but I am not be able to visualize vector layers. This is the ...
1
vote
1answer
71 views

Multiple Attribute Tables - CMV

I am trying to add multiple tables using tabs to one of my viewers but can't get it to work. Below is the code that I have added to my viewer.js widget option (it adds a table for 'Site 2' but not ...
0
votes
0answers
37 views

Javascript - Problems getting GeoJSON from Geoserver

I already read other posts regarding this topic. However, I cannot make it run. This is what I have: var geoJsonUrl = ...
0
votes
0answers
13 views

Heron library call bookmarks from menu bar

Following this example I managed to build a geoportal app using Heron js and GeoExt. The problem I've found now is I can't call bookmarks from inside a menu (not panel). ...
0
votes
1answer
150 views

Use Mapbox featureLayer to create Marker Clusters

I'm trying to use this tutorial (https://www.mapbox.com/mapbox.js/example/v1.0.0/markercluster-with-mapbox-data/) to create marker clusters to style a Mapbox featureLayer containing my data. This code ...
0
votes
1answer
88 views

Batch Edit GeoJSON Markers with Mapbox.js

I cannot figure out how to style all feature points from a local GeoJson file at once using the Mapbox.js. My GeoJSON file has roughly 500 points. I could go through each point in the GeoJSON file and ...
0
votes
1answer
30 views

A method for limiting the number of results the Get Feature Interaction brings through in OpenLayers 3

I have so far managed to return a list of all the customer names at a single point when the vector layer is clicked on. I am looking to limit this to only show the first (or just one) record.Could ...
0
votes
0answers
136 views

How to make the value showing on a leaflet heatmap like this one?

I'm attempting to use leaftlet.js, and heatmap.js (github.com/pa7/heatmap.js/) following this example: www.patrick-wied.at/static/heatmapjs/example-heatmap-leaflet.html But I want to show the value ...
0
votes
1answer
26 views

Limiting returned records for an interaction in OpenLayers 3

I have the following script that returns a list of all the customer names at that point when it is clicked on. I am looking to limit this to only show the first (or just one) record.Could this be ...
0
votes
1answer
69 views

How to update data in Leaflet Control?

I have a Leaflet map with a control to switch between various basemaps or toggle on/off some overlay data. //Basemaps are all a-okay //Start with no polylines in my overlayData items = []; ...
0
votes
1answer
55 views

Use turf.count with turf.buffer dynamically

I have this code where I'm trying to create a buffer dynamically from a draggable marker and then count how many points fall insed this buffer. As of now I can drag the buffer around without any ...
0
votes
0answers
25 views

Is there a way to sort the results of a Nominatim request?

I was wondering if there is a way to sort the results of a request to Nominatim. I am using JavaScript for the request. When I type street name and house number I do get a certain number of results. ...
0
votes
1answer
131 views

Map.addLayer() is not working

I am creating an app with leaflet that shows a route on a map based on the button clicked. For example when you click on "button1", the associated route is successfully displayed on the map (i.e. ...
0
votes
1answer
69 views

Leaflet.js rendering 'chopped' WMS point symbols for variable sized points

I am using GeoServer to render WMS for variable sized points based on a data attribute. This technique is documented in GeoServers SLD Cookbook here. The SLD that I am creating validates ...
0
votes
1answer
87 views

Parsing XML file with hundred polygons using OpenLayers

I'm using this script but It's not working. <script type="text/javascript"> var raster = new ol.layer.Tile({ source: new ol.source.OSM() }); var xml = new OpenLayers.Format.XML(), wkt = new ...
0
votes
1answer
102 views

ArcGIS Javascript Spatial Query with Lat Lng or X Y?

I am using Google Maps on the front end as all I need on this view is to show the points. When user clicks on the map in the view, it selects a point hence giving out lat and lng. I am trying to use ...
1
vote
1answer
418 views

open layers 3 problem with feature overlay and

Edit -- I left out some very relevant information in my first post. I realized the issue I'm having isn't because of the counties layer itself but of the Feature overlay that is created when the user ...
1
vote
1answer
98 views

How to nest GeoJSON features based on their geometry in javascript?

I have a GeoJson object with polygon features. Some of them have same geometry. They look like this: squareData = { "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": ...
0
votes
1answer
70 views

Leaflet TimeSlider not showing points correctly

I'm trying to add about 13 thousand points in a map using the TimeSlide plugin, but my points are not following a logical order of appearance. When I use the slider I get the dates in the box below in ...
0
votes
1answer
41 views

How to show new points in arcgis online collector map?

I have created Arcgis Online Collector Map. Is it possible to have new data points collected to stand out from the old ones? As of now, they all look the same and its hard to tell which ones are new ...
0
votes
0answers
39 views

How to create email button instead of submit and close in a collector arcgis

I have created a collector app through arcgis online. I am trying to have the form to be sent to an email and then have that information show up on the map. I would really appreciate any help. I am ...
1
vote
0answers
64 views

Raster overlay with different projection in Google Maps

I have a map created with Google Maps. I want to overlay over some data I am downloading dynamically, covering the whole world. That data is a matrix as follows: 1024 values for the longitude ...
0
votes
1answer
118 views

google.maps.InfoWindow is not working

If anyone encountered the same problem and come up with the solution please give me an idea if what's wrong with this code. The InfoWindow is not working when i click the map polygon. All parts ...
1
vote
1answer
84 views

Webmapping js library with best support to WFS-T

I've tried to use WFS-T in ol3 but it was really a hard task, it seems that WFS-T is badly undocumented feature and it's much complicated to implement, and i'm looking for recommandations concerning ...
1
vote
0answers
98 views

How to add pixels offset based on resolution

Currently I'm displaying popups on my map using this utility by Matt Walker. My code is something like this: map.defaultPopup = new ol.Overlay.Popup({ panMapIfOutOfView: false }); ...