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
2answers
42 views

Layer not staying on top of all other layers

I am trying to keep a specific layer named popDensity on top of all the other layers on my map despite what other layers I may click in the layers control. I am using the Leaflet overlayadd event to ...
1
vote
0answers
15 views

Land Use Public Notification: Invalid geometry [closed]

I am in the process of incorporating our data into the Public Notification app from ESRI, but when I load in our parcels, I get an error saying "Unable to perform operation: invalid geometry". I have ...
0
votes
1answer
24 views

LeafletJS: How to hide legend when layer is clicked?

I am trying to show/hide a legend when a certain overlay is clicked, but can't seem to get the legend to hide when the overlay is unclicked. Here's my sample setup: //establish the data var ...
19
votes
5answers
10k views

Visualizing large datasets with Leaflet

When using Leaflet to visualize a large dataset (GeoJSON with 10,000 point features), not surprisingly the browser crashes or hangs. A sub-sample of 1000 features from the same dataset works ...
0
votes
0answers
41 views

Google Maps API : Picklist on markers

I need to change the markers colors by showing a picklist onclick. For example: A red Marker, with the inner info 'Red', when clicked shows a picklist with others colors (blue, black,... ), when ...
0
votes
0answers
12 views

How to import Query form in gxp app.js file

I am using suite sdk for developing web mapping application for my own layer. I am using geoserver for publishing the layer which are created in QGIS and stored in PostGIS database. I am getting ...
0
votes
0answers
18 views

Create custom library in openlayers 3

I'm currently using openlayers 3.4.0. I want to add SetZIndex and GetZIndex methods to OL 3.4.0 (from latest version 3.14.1). Could you please someone tell me, How to create custom library or separate ...
1
vote
1answer
22 views

How to color arcs with arc.js?

I've been using arc.js and I was trying to see if there was any way to color the arcs, except for the normal blue shown(ex). I tried looking around with the arc options, but I couldn't really find ...
1
vote
1answer
213 views

A problem with event firing upon mouseout

I'm trying to create a point map that displays information about a point in an info box upon user mouseover and changes the styling of the point. On mouseout, I want the info box and marker styling to ...
0
votes
1answer
73 views

Drawing circle with OpenLayers3, but not seeing on map?

I am trying to draw a circle on a map, using open layers 3, but I am not sure why the circle is not rendering. My expectations with the code below is that is should be centering on -73.5971431341708, ...
4
votes
2answers
294 views

tabbed popup window for Arcgis Javascript

Anyone know examples of a tabbed popup window for Arcgis for javascript, NOT an infowindow? If you could point me in the the right direction it would help.
3
votes
1answer
225 views

Control to select data source on Leaflet map

I am building a map using leaflet. My data source looks something like this: var districts = {"type": "FeatureCollection", "features": [ {"type":"Feature", "geometry": ...
3
votes
1answer
202 views

Show Cartodb Maps infowindow on hover programatically

How do i get to show the cartodb infowindow when one hovers over a point? I see that it is possible via the gui but how can one do it via code? what method should i call on the on('featureOver') ...
0
votes
1answer
30 views

Drawing arcs/curved line/arrows with Leaflet using method other than arc.js?

I've been trying to find a good way to draw arcs or even arrows dynamically with Leaflet.js, but I haven't come up with much. I tried arc.js, however I was having problems with that approach, and I ...
1
vote
1answer
716 views

Google Hybrid Map tiles won't load in OpenLayers when centered on certain position

Since the Google Maps API update to V3.2 (17 Feb 2015) our maps have not been loading to their initial state, centered over the Gulf of Mexico. When the center location is: center: new ...
0
votes
2answers
92 views

Esri JavaScript API ApplyEdits update not working

When I attempt to applyEdits as an update to my application I receive the following errors: I uploaded my most recent revision on Github at: ...
0
votes
0answers
22 views

display local tiles with openlayers that are generated by maptiler from a (.tif) georeferenced image

im working on a mobile app and trying to use my locally stored tiles that i generate using maptiler software. after tiling my image.tif i got many folders of png images and two other files : ...
0
votes
0answers
30 views

Is it possible to select and highlight a polygon that contains points in one cluster in openlayers 3

my question is I need to select one cluster for that cluster there will some points. Right now I am able to select points in one cluster selected from the drop down. i have added markers to it. now ...
0
votes
1answer
45 views

Get array of LatLngs from ArcGIS feature layer polyline using Esri-Leaflet

Leaflet has a method built into the polyline class to return an array of all LatLng coordinates of the line. It would look something like: var latlngArray = polyline.getLatLngs(); Esri-leaflet, the ...
0
votes
0answers
15 views

Keep NoData values when using gdal_merge

I'm using gdal_merge to join several BioClim rasters, which I will then feed into a Java program that "snaps" points to the nearest BioClim raster tile of non-NoData value. However, when I run ...
1
vote
1answer
59 views

highlight feature with click in mapbox gl

I have a geojson layer of streets that are highlighted when moused-over. My objective is now to highlight individual streets red with a click event. Only one street should be able to be ...
1
vote
1answer
184 views

Using OpenLayers 3 Feature onclick event?

I looked for a way to fire onclick event and I found Adding event handler to feature in OpenLayers 3? at Stack Overflow. I undestand from this question is that there is no event onclick to features. ...
0
votes
0answers
28 views

OpenLayers 3 doesn't show KML layer

I'm trying to add a KML layer in OpenLayers 3 but nothing is showing. Here is my script: var projection = ol.proj.get('EPSG:3857'); var mapa = new ol.layer.Tile({ source: new ol.source.OSM() ...
0
votes
0answers
34 views

How to find angle between 3 points on sphere? (in javascript)

How to calculate angle between 3 points on sphere? Currently i've got function correct for cartesian space: function find_angle(A,B,C) { var AB = Math.sqrt(Math.pow(B.lon-A.lon,2)+ ...
0
votes
1answer
223 views

Convert Leaflet WMS layer to Leaflet GeoJSON layer

Using the Leaflet API I am adding a WMS layer through the L.tilelayer.WMS feature. This feature includes only a certain amount of options such as 'layers','crs','style' etc. Through the Leaflet ...
0
votes
0answers
41 views

How to scale polygon to obtain specific area in javascript?

I have got a source polygon (saved as standard js array). I want to scale it down to obtain new destination polygon in the centre with 1/3 of source area. On the cartesian space i just scaling down ...
0
votes
1answer
33 views

How to divide line into three equal parts?

I have a problem with line division. I'm writing a program in JS/C++ generating KML files. I was trying to divide a line using my own function (which is correct on cartesian space): var part1Lon ...
2
votes
1answer
89 views

Why does my MapServer WMS not zoom correctly in OpenLayers 3?

Below code is showing the addition of mapserver file in openlayers 3, it is successfully showing me image in the browser but when i zoom that image it does not zoom. It comes back to originial view. ...
0
votes
0answers
26 views

Javascript ApI errors from chrome console:Uncaught TypeError: Cannot read property 'domNode' of undefined

I am using Javascript API(CMV Template) for customizing my search widget. The widget will be shown as a link on a website header. But it kept returning errors. Error1: ...
4
votes
2answers
425 views

How would I get number of tiles loaded, and total number loading?

So new to OpenLayers 3, and I'm trying to create a "loading bar" to indicate how much of a layer has loaded. I'm thinking of making it based on the number of tiles loaded so far divided by the total ...
1
vote
1answer
43 views

How to create a heatmap with numbers using Leaflet map?

I wish to create a heatmap like this one at http://www.trulia.com/local/san-francisco-ca/tiles:1|points:1_crime With the number changes at different zoom level - the number can appear in a ...
1
vote
1answer
41 views

Sortable list of layers

I want to create a sortable lists of layers using jquery ui. I'm trying to use .setZindex() and .index() method. I think that index of <li> does not refresh after order changing. I'm not ...
0
votes
2answers
41 views

Leaflet: Capturing points for features inside circle

I'm using the leaflet draw tool to create a circle and then finding the points inside the circle. My data is from GeoJSON, and the code works as far as figuring out how many points are inside, but I ...
15
votes
6answers
15k views

How to Create Animated Cluster Markers in OpenLayers/Leaflet?

I want to use Leaflet due to the smooth transitions which Openlayers seems like they can't match. I specifically require the ability to cluster markers with custom styled marker groups. The best ...
0
votes
2answers
305 views

Active layer update in ArcIMS?

I'm trying to change the active layer in ArcIMS from the default top position to index 2 in the TOC. The TOC has 3 grouped layers, but it is the first grouped layer that I want the active layer to be ...
1
vote
0answers
313 views

Layer set visible

I add this layer like this: var POIData = new esri.layers.ArcGISDynamicMapServiceLayer("https://mysite.com/ArcGIS/rest/services/POI_Data/MapServer"); map.addLayer(POIData); ...
0
votes
1answer
51 views

Can I set a max zoom for a search in CartoDB.js

I made a map with a search box that is related to a country. Entering a postal code will zoom completly in to the asked postal code. I would like to center the map to this asked postal code, but not ...
2
votes
1answer
2k 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
962 views

Looking for dissolve algorithm for Javascript

I have three adjacent polygons that together make up a larger shape. I need an algorithm that will dissolve the internal borders leaving only the outside border. An example would be a group of ...
1
vote
2answers
215 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
155 views

Display geojson on WMS images in openlayers 3

Here actually am trying to achieve multipolygon on wms layer in openlayers 3. In this i'm calling a php file which is giving the output of geojson format but i don't have any idea where i'm doing . I ...
1
vote
1answer
40 views

OpenLayers 3: Vector Layer loses styling when map pans or changes zoom

I'm working on switching from OpenLayers 2 to OpenLayers 3 and supplementing my reading of The Book of OpenLayers 3 by trying some things out on my own. There's a project that I'm building here that ...
2
votes
1answer
162 views

Setting multiple WMS layers over basemap of OpenLayers 3?

I'm developing a web-based application. In this project I'm trying to create multiple WMS image layer over the map with legends. As you can see below its showing the WMS layer over its basemap . ...
0
votes
1answer
36 views

Loading Leaflet raster layers asynchronously before adding them to the map?

I am working on a web application where users can view sequences of 5-10 GeoTiffs overlaid on a map, and played like a slideshow - show the first Geotiff, wait a few seconds, show the second, and so ...
2
votes
1answer
386 views

Exporting features in OpenLayers 2 to KML?

I'm new to OpenLayers (2.13). I saw in the example section that it is possible to draw features like lines, points and polygons. http://dev.openlayers.org/examples/draw-feature.html Quite ...
0
votes
0answers
18 views

How set base layer and wms layer seperate in openlayer3

here I want osm and mapquest to be the default layers without initializing in the map. Please suggest var osm = new ol.layer.Tile({ source: new ol.source.MapQuest({layer: 'osm', isBaseLayer: ...
4
votes
1answer
2k views

Changing the line color of a marker box using OpenLayers

I'm trying to figure out how to change the line color of a marker box in openlayers. I've been learning from the following example: <!DOCTYPE html> <html> <head> <meta ...
2
votes
1answer
60 views

Mutually Exclusive Bootstrap Checkbox Switches as Layer Control

I have this JSFiddle with two checkboxes using Bootstrap Switch that changes the layer visibility in Leaflet. I would like them to be mutually exclusive, i.e neither of them can be on or off at the ...
2
votes
1answer
43 views

List of coordinates for earth locations in Cesium?

All of the examples in Cesium show coordinates for the locations in the code. For example, for Wyoming they show the following. Where can we get these coordinates from? If I want to do Arkansas, is ...
1
vote
2answers
265 views

Unable to serve Cesium Terrain files

I am trying to generate 3d Terrain. I am serving the terrain files at localhost:8081 Here is the Cesium Code var viewer = new Cesium.Viewer('cesiumContainer', { baseLayerPicker : false, ...