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)

3
votes
0answers
107 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
24 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
53 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 ...
1
vote
1answer
464 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
222 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
87 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
43 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
46 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
77 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
26 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
39 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
127 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
56 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
27 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 ...
0
votes
1answer
72 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
183 views

Display two generated tiles on one map using Openlayers

i have a multiple Geo-referenced tiff the Problem is : 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 ...
1
vote
1answer
83 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 = ...
0
votes
1answer
50 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
72 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
114 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
74 views

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

I currently use Earthlight by Statmap for my company's web mapping, however I don't like it very much and want to change to an open source product. I use QGIS and would like to use QGIS Server to put ...
0
votes
1answer
74 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
91 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
73 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
52 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 ...
0
votes
0answers
31 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 ...
2
votes
2answers
48 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 ...
0
votes
0answers
15 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 || {}; ...
1
vote
1answer
47 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
20 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
19 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
18 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
187 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
48 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 ...
0
votes
1answer
59 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.
0
votes
0answers
21 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
86 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
26 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
59 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 ...
0
votes
1answer
115 views

switching the layers on/off in leaflet map layer tree based on styling

I am developing web application which has leaflet maps. I need the layer control which is similar to QGIS I am using Geoserver to get the layer as wms format and I added that layer using ...
1
vote
1answer
49 views

how to Zoom to max extent in openlayers3?

How to zoom to max extent on click of button in openlayers-3? I tried with function zoomtoextent(){ //map.zoomToMaxExtent(); if(globalbBox==null) { var bBox = new OpenLayers.Bounds( ...
0
votes
1answer
46 views

show kml from variable instead of url

I am trying to add a layer from KML variable instead of url due to the current circumstances that force me to. I am using openlayer 2.13.1, chrome, VS and .net. i have read the following link and ...
1
vote
1answer
59 views

Openlayer load kml 64 string data URI

I am trying to load a kml fileto google map using openlayer 2. below is the code: var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", ...
0
votes
1answer
31 views

Polygons on Mouseover event only Activate on Borders

I have a map with several polygons that have a mouseover and click event. The mouseover event causes the polygon to change color, and the click event brings up a custom info window. Most of the 200 ...
1
vote
2answers
87 views

Programmatically modifying ArcGIS Measurement object's units property

I am using ArcGIS's JS API for Measurement tool to measure and display Area, Distance, and Location points, but I cannot seem to be able to change the units programmatically. There's a method for ...
1
vote
1answer
77 views

Mapbox Directions Plugin - Get Route GeoJson

Goal: find the GeoJSON points in a web map that are closest to a directions route using turf.js. I am using the Mapbox Directions plugin. I am following this example. How do I work with the route ...
1
vote
2answers
61 views

OpenLayers 3 insert layer below other layers

I have this JSFiddle that can turn the OSM data on and off, the only issue being when it adds it back in the layer is added on top of everything else. I know this is a relatively simple fix using the ...
1
vote
2answers
99 views

Loading Json properties in a popup using leafletjs

I have a geojson file (tide_gauges.geojson) { "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, ...
1
vote
1answer
63 views

Converting Esri Leaflet featureCollection to JSON?

I've followed the Esri Leaflet sample code found here: http://esri.github.io/esri-leaflet/api-reference/tasks/query.html //Querying features near a latlng var latlng = L.latLng(45.51, -122.70); var ...
1
vote
0answers
58 views

Populate list from arcgis server service in JQUERY javascript aplication instead of DOJO?

I would like to populate a list on a select combobox using jquery with data from an arcserver service.I'm wondering if this is possible and if so how i would implement it. I'm using the esri ...