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
52 views

Temporal Heat Map using Leaflet and ESRI

I am trying to create a temporal heat map using this template: https://esri.github.io/esri-leaflet/examples/visualizing-time-with-feature-layer.html I would like to show the symbology based on a ...
1
vote
2answers
340 views

Native Mapping Application - Leaflet Mapbox

I am going to build a native mapping application that I would like to offer for Android and IOS devices. I am an accomplished developer of web-based app using javascript, html and css. I am also ...
2
votes
1answer
54 views

Story Map SpyGlass without ArcGIS Online?

I am looking to see if there is an implementation example of the Spy Glass widget without ArcGIS Online or Story Maps. I have found the LayerSwipe documentation and can implement that fine, but I ...
1
vote
2answers
239 views

Why do my kml polygons move during zoom (using leaflet and meteor with OpenStreetMap)?

I'm using meteor.js and leaflet.js to build a simple application that displays kml polygons on an openstreetmaps layer. I can get the polygons to display fine, but during a zoom operation the polygons ...
-1
votes
1answer
120 views

Python or Javascript focus (for self-directed study at university) [closed]

Next semester is my last at university. I have taken all 3 of the GIS courses offered in my program. Besides some very light interaction with Python though, their has been zero discussion of ...
1
vote
1answer
402 views

Leaflet Marker Cluster: refreshCluster function issue

I am trying to use the markers.refreshClusters(); function to refresh the marker icons for a new styled icon I am trying to work with to highlight the selected cluster. Unfortunately, I keep getting ...
0
votes
2answers
161 views

how can I specify a popup to show only for a specifc layer in openLayers 3?

I am using the function to define popup contents in a map, and right now, it createa a popup for every feature I click on the map, no matter what layer it is in. I would like this popup to appear only ...
1
vote
1answer
115 views

Unable to find all points in extent area using ArcGIS API for JavaScript?

I am trying to create a map where I can draw a selection area, and get info of all graphic pointers under it, I tried to modify ArcGis example but the problem now is that I can only able to select ...
1
vote
1answer
513 views

Leaflet Opacity Control Using Slider For Bootstrap

I am attempting to use the Slider For Bootstrap to update the opacity of a layer within Leaflet. The slider also needs to be in a Bootstrap Popup but this part is working. As per this JSFiddle you ...
1
vote
0answers
61 views

Making a ajax JSONP call to get the WFS features from Geoserver [closed]

I am Working on a GIS application. Technology working on Geoserver and Openlayers 3.5.0 for this application. I am not able to make a JSON request call to the WFS endpoint. If i make a JSON request, ...
0
votes
1answer
102 views

How to create a circle in openlayers 3?

I have tried to create a circle of desired range using following code but not working. Please guide me. function createBuffer(lat, lon, range) { var style = new ol.style.Style({ fill : new ol....
3
votes
0answers
167 views

Has API been written for SpatiaLite for Cordova?

I am creating an app in which I will be creating an AutoCAD model for a 3 floor building at my college. I'll be importing this model as a spatial object into my javascript app - then wrap it with ...
0
votes
0answers
42 views

How to draw traffic line in small two-way street like google traffic?

I am making an app with some function same as a traffic map. But I have been stuck with below problem for weeks I have used the "Snap to roads" method to match GPS data from mobile device to road ...
0
votes
1answer
87 views

Access ArcGIS map created on localhost using JavaScript

I've created an ArcGIS map on my local ArcGIS map server using ArcMap desktop and I am able to open up the map from "View In: ArcGIS Online map viewer". When viewing the map, the url is something like:...
1
vote
1answer
1k views

why can't I load a layers list to select from to the map in openLayers 3, addEventListener and attachEvent are unavailable

I've tried to incorporate this sample that shows how to switch base layers into a page I am working on: http://openlayers.org/en/v3.10.1/examples/bing-maps.html When I try to load my page with the ...
0
votes
1answer
448 views

Preserving style when producing web maps with the QGIS qgis2web plugin

I used the qgis2web plugin to generate a set of static HTML files out of my QGIS project. This is how my layers look in QGIS: So, there is only one layer of points and a basemap. Very easily I ...
4
votes
1answer
157 views

GeoJSON Layer Order In Leaflet 0.7.5

I am developing a web application that brings in a number of tileLayers and geoJSON layers. For the tile layers I have been able to do similar to this JSFiddle in that the layers appear depening on ...
0
votes
1answer
47 views

Visitors to city's website can digitize points? [duplicate]

I'm trying to collect input on a revision to my town's mainstreet. Is it possible to create a map where a visitor can click a point, and answer a few questions about that point? (OK I was told that ...
0
votes
1answer
64 views

Removing Google maps base layer from Google Maps API

I need to remove the base layer of google maps dynamically. User can add or remove the base layer.Because I am using more layer on top of it.Is there any function in google maps api to remove the ...
2
votes
1answer
96 views

OpenLayers 3.10 - GetIndex / SetIndex

I am a complete beginner to OpenLayers and webmapping in general. I am trying to change the layers' order of my map by modifying the layers' index value, but I cannot get my code to work. Any hint ...
0
votes
0answers
31 views

How to enter the parameters of a decimal number javascript to geoserver

I have some script HTML like this <input type="number" id = "distance" class="form-control" placeholder="Jarak Lokasi (meter)"> if I place a interger value, the result was showed the ...
1
vote
1answer
54 views

How to use openlayers 3 with epsg 32749

I want to set coordinates of my map in epsg 32749. var view = new ol.View({ center:ol.proj.transform([43037,9138591],'EPSG:32749','EPSG:900913'), zoom:10.8 }); var map = new ol.Map({ ...
1
vote
2answers
339 views

Applying a single leaflet search control to search multiple layers?

I am attempting to add a single search button to look through geoJSON layers. They will look through the field "name". Unfortunately, my method of creating a layer group is not working. What am I ...
0
votes
1answer
130 views

WFS from geosever very slow to load in openLayers3

I originally posted this question about trying to load a geoJSON with openLayers3: geojson very slow to load in openLayers3. Based on a suggestion given in the post I'm now loading the layer in as a ...
0
votes
1answer
49 views

Open layers3 drag box interaction not pointing correctly

I am using open layer 3.9.0. I Want to add and remove dragZoom and dragBox interactions in openlayers3 map dynamically. <button id='box'>dragBox</button> var dragBox = new ol.interaction....
0
votes
1answer
103 views

Leaflet Search for GeoJSON creating duplicate, non-functional buttons

I added a plugin for searching a GeoJSON file in leaflet, but now there are multiple search buttons and they do not recognize any input. I suspect that it is initializing for every single instance of ...
2
votes
4answers
268 views

Display two generated tiles on one map using Openlayers

i have a multiple Geo-referenced tiff I want to display Two TMS layer on one map. in another way i want to display tow tailed tiff image in the same map like the picture bellow using Openlayers ...
1
vote
1answer
177 views

Set style from features of layer to hidden?

Is it possible to set the style to hidden of certain parts of a layer of the map? The API documentation does not seems to have any property for it? I tried to add the following: var locatusObject = ...
1
vote
1answer
112 views

Dojo Promise/All Array Not Populating InfoTemplate in ArcGIS Javascript

Using dojo/promise/all I'm attempting to populate an infoTemplate with results from a queryTask which runs later in the script. Our app returns an XY value from a geocoded address search and queries ...
0
votes
1answer
162 views

Clickable hyperlink from GeoJSON field in feature

How do I make a URL a hyperlink when the information is called from a GeoJSON field? I have tried adding html tags, but since the link is not in-line, it does not work. (Script below) LOC_Catalo is ...
0
votes
1answer
183 views

Activating Search Plugin with JS Leaflet

I am attempting to add the following plugin to search a GeoJSON file I have open in Leaflet Javascript: http://labs.easyblog.it/maps/leaflet-search/examples/geojson-layer.html I have brought in the ...
0
votes
1answer
99 views

Do all open source web mapping platforms require programming? [closed]

I currently use a proprietary software product for my company's web mapping, however I am interested in seeing other products. I use QGIS and would like to to put my layers on the web for both ...
0
votes
1answer
192 views

Leaflet Layer Visibility Checkbox

I have created this JSFiddle OpenLayers map that toggles the layers visibility using the bootstrap-switch. I am looking to achieve the same with leaflet but can't seem to get the equivalent of the ...
1
vote
0answers
133 views

Problem with my google map, place search with a text bar

I am doing a small project with google maps api, I am trying to locate all the interesting services around me. For example, i want to search "restaurant" then it will shows all the restaurant near me ...
2
votes
1answer
108 views

Polyline geometry to graphic - SimpleLineSymbol is the only type not displaying on the map

I have modified the Measurement widget to keep a session based history of the measurements the user has made. When a user clicks on a history item, it should display the geometry associated with that ...
0
votes
0answers
97 views

Changing tooltip layers with leaflet/mapbox

I'm a relative beginner with leaflet/mapbox but we are building a website with a set of different TileMill layers, each of which have different interactivity. We had been switching layers with L....
0
votes
0answers
58 views

How to get the directions of the co-ordinates in leaflet?

Now i'm working on the live tracking to track my vehicle.I want to get the directions to change the marker position based on the co-ordinates. I have using arrow icon for marker icon. I need to ...
3
votes
3answers
75 views

Leaflet - tell whether an object a layer or a group

I need to close popups on an object, but I don't know whether it is a layer or a geoJSON (and hence a feature group). If the former, I can do layer.closePopup(), but if the latter, I have to do layer....
0
votes
0answers
19 views

Method to get the style value from the object class?

I have created a class Created a object to that class Need to Create method to generate the legend style from the configuration. Here is My Code Example, ntt = {}; ntt.pgp = ntt.pgp || {}; ntt.pgp....
1
vote
1answer
76 views

Problem with legends, leaflet

I am not very good at js and new with leaflet so i my code may be a bit messy but stil... I have a problem with my legends, i have 2 legends and many overlays and i want some legends to be "linked" ...
0
votes
0answers
36 views

Convert kml to image file programmatically

Is there anyway that we could change the kml file programmatically ? preferably using javascript or c# (I have sharpKMl library on my backend)? I am using javascript for my front end and c# for my ...
0
votes
1answer
43 views

Edit feature attribute in layer, which is made from a featureCollection ArcGIS JS

I know ArgGIS has a JS API to edit attributes of a layer when the layer is published as a feature service. But is there a way to edit attribute values if a layer is made from geoJSON as a ...
0
votes
0answers
22 views

Style manager configuration in openlayers 3

I am trying to the style from configuration and return My code is like this. qt = {}; qt.gpn = qt.gpn || {}; qt.gpn.StyleManager = function(opts) { this.styleConfig = { Polygon: { ...
0
votes
1answer
354 views

Bootstrap and Mapbox: Nav Bar layer selection

I am building an interactive mapping solution for my employer and have run into a bit of a hangup. I am working with bootstrap for the first time and cannot figure out how to link the dropdown list ...
0
votes
1answer
96 views

Multiple logical filters in a WFS request with OpenLayers 2.13.1

Is it possible, and if so how, to use multiple logical filters in a wfs request? For example I have a attribute, type_id that should be 1, 2 or 3. var wfsTypeFilters = [ new OpenLayers.Filter....
0
votes
1answer
130 views

Open layer 3: Add a drop down select scale option.

In open layer 3.9.0 .I have default scale for open layer 3 but what user want is able to set the scale like 1:2000 or 1:5000 and so on using dropdown select box. something like the image below.
1
vote
0answers
64 views

Validate that Openlayers GeoJSON layer is in the correct format with OpenLayers.Protocol.HTTP call

I am completely new to JS and openlayers, i am trying to figure out a way to validate the received layer with the OpenLayers.Protocol.HTTP call. I want to validate that it is in the correct format (...
0
votes
0answers
111 views

ArcGIS Javascript API Search Widget Issue

I am having an issue with the ArcGIS JS Search Widget not returning ANY address results. I have configured it to search through my feature layers which works perfectly. But when I simply try to ...
0
votes
2answers
38 views

tag based filter in OpenLayers

I want to filter an OpenLayers(2) vector layer based on tags. Therefore, the vector layer has a property column which can be filled by comma-seperated tags like e.g. "culture,food,park", but also only ...
0
votes
0answers
120 views

Box zoom out in leaflet maps

I am using leaflet for creating maps in web and geoserver for serving maps as WMS layer.Leaflet has box zoom-in tool when we click shift and drag on the map. Similarly I need box zoom-out in ...