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
0answers
7 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
17 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
13 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
11 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
0answers
10 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
13 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
24 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
9 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
54 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
0answers
11 views

Drawing lines along plotted coordinated points on roads for OSM Data

I have already plotted points(latitude and longitude coordinates) on my map(google maps api). These coordinates are OSM points that are stored in a postgres database and I have retrieved them using an ...
0
votes
1answer
26 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
18 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
37 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
52 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
45 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
28 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
25 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
17 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
38 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
27 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
45 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
83 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
21 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
31 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
23 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
51 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
20 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
27 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
25 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
24 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
40 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
19 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
33 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
57 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
72 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
30 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
62 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
55 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> ...
1
vote
2answers
76 views

No popup on map if no feature is selected

I've got a webmap showing data coming from a Geoserver instance. With better.WMS.js I made it possible to display popups. Everything works nice except that the map shows popups too where there is no ...
1
vote
1answer
48 views

Google Maps Javascript and PHP

I try to make a menu bar with icons which show the same icons in the map when clicked, for example hotels or bars. I made a form with radio buttons for choose and click submit. This goes to PHP, ...
0
votes
0answers
22 views

Shapefiles from PostGIS to Overlays in Legends

How do I make shapefiles from PostGIS legend overlays in OpenGeo. I've seen a couple of examples in GeoExt but they do not really address my problem.I have set this shapefiles in config section on ...
0
votes
0answers
32 views

Leaflet Magnifying Glass and Opacity Controls

I have been looking at Leaflet as an alternative to Open Layers 3 in the event that I need something more lightweight, but I am running into a problem when trying to integrate some of the generously ...
0
votes
0answers
25 views

Heron 1.0.5 - can't use measurelength tool

if there is somebody here using the Heron-MC framework in the latest version 1.0.5 and can answer to my problem.... When looking at the examples of Heron v1.0.5 then it looks like I simply have to ...
0
votes
0answers
8 views

How do I add the sanitizer option to mapbox.js v1.6.2?

I believe this is the newest version of mapbox.js sanitizer var gridControl = L.mapbox.gridControl('grafa.hack22fp', {sanitizer: function(x) { return x; }}) .addTo(map); I need to add it to ...
1
vote
1answer
48 views

How can I make an OSM map without icons and labels?

I want to create a web application that include Open Street Map . I use OpenLayers library to create map , but now I want to create map without icons like hospitals,coffeshop and other icons. This ...
0
votes
0answers
38 views

Dojo TypeError for ArcGIS Javascript API App

I recently updated the app to the 3.13 framework, and now am getting the following error when I load my application. Uncaught TypeError: Cannot read property 'missingMessage' of undefined Chrome ...
0
votes
1answer
31 views

Geocoder's autocomplete only shows 26px in Leaflet

I've got a map on GitHub (I removed everything that isn't needed). The problem is that the geocoding widget doesn't show the search results completly: I guess this happens due to a custom zoom bar ...
0
votes
1answer
17 views

Converting js time stamp to work in CMV application that read field values

This might be a somewhat basic question but I cannot seem to get the logic to work. I am having a search widget search through dates to find similar records of what an asset was last serviced in the ...
0
votes
0answers
41 views

OpenLayers.Layer.Text displays icons at 0,0

I'm using Text layer from OpenLayers 2.13.1 to display a list of points on the map. The problem is that icons are always placed at point 0,0 (Gulf of Africa) instead of at their own positions. I ...
0
votes
3answers
42 views

Layer doesn't turn back on after clicking in OpenLayers 3

I have the following code. I have setup a default function of turning the showing all my layers and on click the layers disappear. But they don't turn back on when I click on them. So what have I done ...