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
vote
0answers
293 views

openlayers 2.13.1 vector layer and CQL does not work in IE11

I have implemented a search functionality for a vector layer in openlayers 2.13.1. I use CQL. I take the values from an html form and I use javascript to pass them to a CQL filter and execute it. ...
0
votes
2answers
288 views

A script on this page may be busy, or it may have stopped responding

I'm using OpenLayers - 2.11,GeoServer 2.13, ExtJS 3.4, and Java for developing GIS based web applications. Recently i'm getting below error message in my application "A script on this page may be ...
2
votes
3answers
139 views

Simple javascript viewer for ArcGIS Server data

I would like a simple javascript viewer which will allow end users to do the following in their browser: Add layers from arcgis server by clicking an "add data" button See attributes with an info ...
0
votes
0answers
61 views

How to correctly use multipolyline with leaflet

I'm trying to represent one polyline with leaflet, then copy it in a multi polyline, empty the polyline, and fill it again with new data. I currently use something like: l = ...
2
votes
1answer
2k views

How to use ArcGIS JavaScript API's map.centerAndZoom()?

I'm trying to get the map to move and zoom in to a point when a function is executed. Point gets selected, but without zoom. Interestingly when I zoom in to a random location and then execute the ...
1
vote
1answer
70 views

GWT-OpenLayers - BoundingBox selection

I'm searching for a way to get the bounds of a bounding box a user can drag on a map with gwt-openlayers but i can't figure out how to translate the javascript stuff to the javaside of the wrapper ...
1
vote
1answer
248 views

add marker to map from list of coordinates

Forgive me if this question has an incredibly obvious answer. I'm very new to ESRI and I'm trying to add markers to my map via gps coordinates. I have not found an example that does something this ...
0
votes
1answer
28 views

TabContainer ArcGIS API for JavaScript

I am a novice programmer, but I know enough to be dangerous. Here's my issue and hopefully someone knows the answer. I am developing an application with 4 tabs on the left and a map from ArcGIS ...
2
votes
2answers
137 views

How do I sort a geoJSON feature collection alphabetically by a property value?

I am trying to sort the objects in a geoJSON FeatureCollection alphabetically by the values of one of their properties. How do I get to the nested object properties with JavaScript? I have tried using ...
-1
votes
1answer
186 views

My wms vector data overlay on openlayer vmap work fine but on osm img is not rendering

i am try to overlay my India roads vector over an openlayer (http://vmap0.tiles.osgeo.org/wms/vmap0) vmap work fine.but i want to do the sam task over osm(open street map), i am trying many different ...
0
votes
0answers
49 views

populate a combobox in jsviewer widget

I'm woriking with jsviewer and JSAPI v:2.8. in one of my widgets I have a combobox which I want to be populated once the widget is opened .it should be populated with a field values coming from a ...
1
vote
1answer
287 views

How To Display ArcGIS Javascript API Graphic on Postback

This code uses ArcGIS JS API 3.5 to have a user designate a location on a map. It then blasts those coordinates into a SQL Server 2008 database and returns (using the confirm location button) some ...
2
votes
1answer
431 views

Help with getting the coordinates of a point updated using ESRI JS API Editor

I've been working with ESRI's javascript API for about a week and finding that somethings click while other things are still a mystery to me. I've already created a simple web map that loads an ...
0
votes
0answers
72 views

Editing a stand-alone table in ArcGIS API for JavaScript

I am new to scripting and the API, and it would be good to have a clear idea of what to look into for this task. I am trying to let users add information to a table (but not edit that table in any ...
5
votes
1answer
428 views

Is it possible to create filters based on attributes for markers in Leaflet?

I need to create filters based on attributes of markers. I have markers defined this way: var locations = [ ['AB11 5HW','17','A',57.147701,-2.085442 ] , ['AB11 8DG','3','B',57.129372,-2.090916 ] ...
4
votes
1answer
2k views

Openlayers display a markers popup using a button out of the map

I have the following code which addes 3 markers to the map along with there popup boxes what I want to do is have a list of location at bottom of page and using the id of the marker when click a place ...
0
votes
1answer
107 views

Chorpleth Data visualization in Mapbox Leaflet API

I am using Mapbox Leaflet API. I have followed the following tutorial of Mapbox. https://www.mapbox.com/mapbox.js/ (Please change to Data visualization Tab) Onclick its zooming on state and hover ...
2
votes
0answers
234 views

OpenLayers crashes stock browser on Android 4.0.4 devices [closed]

Update: The issue appears to be with OpenLayers Release 2.13 dev. I mistakenly mentioned 2.12 as being problematic but have retested with no problems. Also, no problems with 2.13rc3 Update 2: This ...
3
votes
1answer
145 views

Zoom further in with leaflet javascirpt API

We're using the leaflet JavaScript API with a tile layer which supports zoom level up to 19. I'd like users to be able to zoom further even if the tiles blur as they have to place markers to a high ...
0
votes
0answers
36 views

Kartograph.js: Conditional styling of each path in a layer

I'm trying to make a web-map with Kartograph.js based on an svg map. I want to fill the paths of a layer based on an attribute. I tried doing it with the accompanying .css file like this: #map svg ...
4
votes
1answer
253 views

What are offline/client geometry capabilities of ArcGIS JavaScript API?

Lately I've been going through ArcGIS JS API samples, but from what I've seen, it looks like all geometric functions always go through server, and use server side REST functions. There is no option to ...
0
votes
1answer
58 views

What must be learned to build 3D web map? [closed]

I wish to build a 3D web map based on Silverlight or JavaScript. I cannot build 3D in Silverlight. What I should do then? Should I learn "Balder" or OpenGL or what? I must do it before 09/2014. Can ...
0
votes
0answers
35 views

Arcgis Javascript code InfoWindow template

I am creating an InfoWindow in javascript code like following. var htmlForms = "<span>City ID: ${CITYID}</span>"+"</br>"; htmlForms += "City Name: ...
1
vote
0answers
56 views

How to use right-click to finish drawing a Polygon in OpenLayers?

I'm using OpenLayers 2.13 and the DrawFeature control. By Default, the Polygon is completed, when you double click. Some of our clients are requesting that we allow the mouse right-click, to finish ...
2
votes
1answer
377 views

While developing stage, Is Proxy.cgi required to get Openlayers WMSGetFeatureInfo?

I have published the data in Geoserver (Tomcat and OS Ubuntu) and I am developing a map application in my local machine (OS windows xp) using asp.net. In my application, I can get WMS feature ...
1
vote
0answers
21 views

How to hide infoWindow while using measure tool and showing it back after using it ArcGis JavaScript API [duplicate]

I have an infoWinfow set on the click event of the map. I want to disable this event when I'm using the measurement tool and then enable it back after the measurement tool is used. So far I've done ...
12
votes
5answers
2k 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
1answer
53 views

esri map popup problem [closed]

My map works fine. Popup works fine. For some reason, the bottom of the popup window has some layout issues. I have all the resources included. script: dojo.require("esri.map"); ...
2
votes
2answers
224 views

json to shapefile in javascript

I know, there are some libraries to convert .shp to .json even with javascript, but haven't found a way to convert .json back into .shp that could be implemented in web enviroment. Do you know or ...
2
votes
0answers
201 views

How do I set the fillcolor of polygons in Leaflet.js dynamically?

I'm using the interactive chloropath example for leaflet.js I figured out how to make each of my polygons add a running tally of values to the bottom of the page after each polygon is clicked. Upon ...
6
votes
1answer
345 views

Using Tilestache and Leaflet To Display Rasters In Native Projection

I have a collection of old Idaho state highway maps in GeoTiff format. The projection that these maps have been georeferenced in is a transverse mercator projection, called IDTM83 (Idaho Transverse ...
0
votes
0answers
65 views

Arcgis custom spatialreference and geolocation problem

I have a tiled map service layer that has custom spatial reference. This is url of map. Spatial Reference: ...
1
vote
0answers
221 views

Leaflet Event Craziness: jQuery click events don't propagate to L.DomEvents

I noticed that calling .click() on jQuery selected DOM elements in Leaflet ( such as anchor icons ) will not do anything -- the click event isn't propagated to the events created with L.DomEvents. For ...
6
votes
2answers
301 views

Rendering huge amount of points

Evening Guys, I am new to ArcGIS, and currently developing a small app that uses ArcGIS Javascript API. I have encountered a couple of problems while working on this and would greatly appreciate if ...
3
votes
2answers
324 views

Google Maps Polygon to WKT

I need to convert a Google Maps polygon object (can has multi paths and holes) to wkt string (multipolygon) at client. Then i'll able to save polygon as geography in Sql Server 2012. I tried Wicket ...
2
votes
1answer
93 views

How to join USDA SSURGO soil table data to features in QGIS?

I am trying to make a soil map using QGIS. The only problem is that I cannot join table data to features in QGIS. In ArcGIS for Desktop you just open the folder and then join the tabular table ...
4
votes
2answers
1k views

Click link inside Leaflet Popup and do javascript

I have a leaflet map up and running. It overlays a series of polygons (via GeoJSON) on the map and attaches popups to each polygon. Each of the popups display information about that polygon. I'd ...
1
vote
1answer
105 views

Openlayers Vector Layers eventListeners: how to specify different data without defining multiple layers

I have a map. It has two origins, and two destinations. The code for one origin is here: vectors_origin = new OpenLayers.Layer.Vector("Origin", { eventListeners:{ ...
0
votes
1answer
218 views

openlayers how to get feature info on form submit?

I have an OpenLayers pop-up with a form on selectFeature (WFS-T). Can I recover the feature.attributes in the form's onSubmit? e.g: the form in the popup var content = '<form ...
0
votes
1answer
469 views

Go to the URL when clicked on Leaflet marker

I want to implement marker click event so when user click on marker it goes to url. Url is written inside an array (a[3]). However, this is my code which doesn't work, it always goes to the link of ...
2
votes
1answer
699 views

How to find direction points using Google Maps API 3?

I am drawing a route in Google Maps. I have passed the start point, way points and end points. My route is drawing correctly. I am using Google Maps API 3. request = { origin: originAddress, ...
0
votes
1answer
2k views

How to draw a line between markers in openlayers

how to draw the line between markers, coordinates of markers undertake from a DB. whether it is possible to draw in general lines between markers, I saw examples only with points. markers = new ...
1
vote
1answer
93 views

Openlayers: Making the map move with moving vector layer (airplane) on map

So currently I have a map that has some plane data. There is a setInterval function that updates the plane data every 5 seconds, making the plane move from point to point. That is working well. ...
4
votes
1answer
2k views

How to handle add feature event in the FeatureLayer/Editor

I use a FeatureLayer created from the featureCollection. I also use esri.dijit.editing.Editor to add a feature to the map. Every time feature has been added to this layer I want to send it to my ...
0
votes
0answers
127 views

listerner for multiselect in ExtJS

I'm using ExtJS 3.21 Version. Can we provide listerners for multiselect in ExtJS? items:[{ fieldLabel: 'Vehicle List', xtype: 'multiselect', autoScroll:true, name: ...
0
votes
0answers
36 views

OpenLayers feature label is not centered

I have a problem with OpenLayers feature label. When I add label to the feature feature.attributes = { fullName: name, favColor: '#880000' }; and show feature on the map, then The label ...
2
votes
1answer
116 views

How to flash a graphic in JSAPI using AMD

With the code below I was hoping to flash the selected polyline, however no success. function flashResults(featureSet) { alert("flash"); //remove all graphics on the maps graphics layer ...
1
vote
0answers
188 views

Google map did not update new geolocation when I moved the marker to new position

This is my google map code. I'm trying to update new latitude and longitude when i moved the existing marker to new position. But I don't understand why the following google map code is not updating ...
1
vote
1answer
394 views

create polylines with different colors in leaflet

I have one function which creates poly line & adds that polyline to map function makeRoute(e) { if(pointsSelection.length > 0) { pointsSelection.push(e.target.getLatLng()); ...
0
votes
2answers
377 views

ArcGIS javascript api - layer reordering - how to add new layers?

I am learning ArcGIS javascript API and wanted to make a reordering panel for my webapp. I looked through the ArcGIS sample. but I'm stuck at addLake() function. If I'm understand the sample ...