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)

1
vote
0answers
21 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
11 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
24 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
19 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
25 views

Printing functionality OpenLayers 3 and MapServer [on hold]

Someone explored the existing solutions to print a map with OpenLayers 3 using MapServer. I saw the print function of this web mapping http://map.geo.admin.ch it's really interesting. Is there any ...
0
votes
0answers
13 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
16 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
27 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
8 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
23 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
27 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
24 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
5 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
31 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
29 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
21 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
19 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
17 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
18 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
39 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
13 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
68 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
34 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
26 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
45 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 ...
0
votes
1answer
82 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
50 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
29 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
29 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
21 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
44 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
39 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
60 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
87 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 }); ...
1
vote
1answer
28 views

Adding hyperlinks to Leaflet polylines created via Leaflet.Draw?

[Cross posting from StackOverflow as I realized this may be a more specific community for this] I'm using Leaflet.Draw, and I want to allow the lines that I draw to have hyperlinks in them so that ...
0
votes
0answers
33 views

browser crashes when loading legends at startup

After much perusing for solutions, I've decided to post my problem as a question. I'm trying to load the legends that are built into the ArcGIS Service Layers I'm using. I'm loading about 7 Dynamic ...
0
votes
1answer
29 views

Remove CQL_Filter from Open Layer Map

I'm using Open Layer to show my map with some layers. I've a field where I can add some filters with CQL code. I can successfully add a new filter to my map, and only the right points appear in my map ...
0
votes
1answer
77 views

Change Header/Background Color For Attribute Popup Window (JavaScript Web AppBuilder)

After creating a web app and downloading it using the JavaScript Web AppBuilder for ArcGIS (Developer Edition), I was able to change the site header and widget popup color schemes via an existing ...
0
votes
0answers
30 views

Move Zoom In & Out Button in ArcGIS JavaScript Web AppBuilder (Developer Edition Download)

After creating a web app in ArcGIS Online, I downloaded the app using the Web AppBuilder for ArcGIS (Developer Edition). Several folders, .json, .html, .js, and .css files are contained within the ...
0
votes
0answers
30 views

How to force the urlUtils proxy perform only POST requests

How can I force the urlUtils to use only POST requests. I a using it as shown in the following block described also in the how to use proxy section, and I have noticed that some times (maybe when ...
-1
votes
1answer
31 views

combining mbtiles and getZoom to visualize with Leaflet

I have exported MBTiles as single file for every zoom scale. Now I can add map manually call them with mbtiles.php server. But I want to accumulate it in one and get the mbtiles file on zoom scale ...
1
vote
0answers
30 views

How to Load SQL Geometry Data on OpenLayers3?

I am New in OpenLayers 3. I have to load Geometry data from sql to my OpenLayers map. This is my code : var tileLayer = new ol.layer.Tile({ source: new ol.source.MapQuest({ layer: 'osm' }) }) var ...
0
votes
1answer
44 views

Mapbox.js setStyle differently for each element

I'm using geoJson in a featureLayer so I can use the setFilter-Function. My question is: How can I use the setStyle-Function and give Elements with different properties different colors? My Code: ...
0
votes
0answers
29 views

OpenLayers get feature from layer at viewport position

How can I get a feature from layer at a viewport position, in openLayers 2.12. For example something like... Layer1.getFeatureAtPosition(x,y)
1
vote
1answer
48 views

10.3 js callback appended to query call not working

I have two 10.3 ags servers that i thought were the same. But on one i can send this request to the rest api endpoint and it does not work: ...
0
votes
1answer
67 views

Wrong Terrain Height Information

I am getting negative elevation values from CesiumTerrainProvider (stk-terrain). For few locations the below code is giving negative elevation values, which are wrong, as I have checked those values ...
0
votes
1answer
85 views

How to run turf.js on desktop

Morgan Herlocker answerd in another question, that he uses turf.js on his desktop with node.js. I'm really new to GIS and won't become pro for all hacks. My need is: having a geojson with a polygon ...
0
votes
0answers
33 views

Mouse wheel events not fired when focus on map element INSIDE winform web browser

i'm displaying a openlayers map inside a winform web browser, since i'm getting focused on map element(with a click on the map), i have not getting mouse wheel events any more,even not document ...
0
votes
0answers
85 views

How to generate exportable report from web map (ArcGIS JavaScript API)

I would like to build a web map using ArcGIS JavaScript API containing 1 layer of polygons & 1+ layers of points (or lines) contained within said polygons. I want this to be enabled with some sort ...
0
votes
1answer
70 views

Placing GeoServer WMS layer within OpenLayers 3

I have the following basic OpenLayers 3 code that opens a OSM background mapping and this works fine: <!doctype html> <html> <head> <title>Hello PMS</title> ...