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
1answer
3k views

ESRI Javascript API Export to Shapefile and CSV

I am working on a Javascript Web Application using the ESRI Javascript API v3.3. My application allows the user to edit and query data and also provides a table for attributes. I would like the user ...
2
votes
2answers
2k views

Spatial query in ArcGIS Javascript Api 3.1

I have scenario in which I have to select features drawing a polygon and and get the attribute values in to a tables or lists.The features on the map consist of polygon, line,point at the same time so ...
1
vote
2answers
645 views

Can anyone point me to good development environment in linux for client side search with flex or javascript?

I want to create a client in mapfish, and/or opengeo, using open layers, maybe cartaro and would like to play in a development environment using flex or javascript. I need to take my data, make it ...
1
vote
1answer
659 views

Arcgis Server - Highlight Identified Features

I am identifying features from an ArcGISDynamicMapServiceLayer All the sublayers can be toggle on/off and when identifying, only the visible layers are queried/returned. Below are the initIdentify ...
3
votes
1answer
315 views

How to draw line by scratching on map using OpenLayers?

Is it possible to draw line by scratching on the map using OpenLayers? I tried some examples, all the examples are drawing by clicking. I want to draw by scratching, just like drawing in normal life ...
3
votes
4answers
8k views

How to use Google Maps V3 Geocode with Openlayers

How to use Google Maps V3 Geocode with Openlayers. Below is my code but the function does not execute when I try to integrate it with Openlayers. This works with my original google v3 file. Below is 2 ...
1
vote
0answers
800 views

OpenLayers and GeoJSON - possible to create, modify and delete features?

I wondered if anyone has some OpenLayers GeoJSON code to read, create, modify and delete features (i.e. instead of using WFS-T)? This is how far I've come - I've no problem changing the pop-up to a ...
1
vote
2answers
626 views

How to use Leaflet marker clustering with image map only?

I have image map of one state, where I would like to put about 100 markers. Is it possible to use only one image map instead of CloudMade tiles Leaflet usually uses? So, I need only that image to be ...
3
votes
1answer
396 views

ArcGISDynamicMapServiceLayer change layer hierarchy

I am building an application off an existing map server using the javaScript API. The server has about 10 layers that I am loading into my application as a ArcGISDynamicMapServiceLayer. Once I have ...
2
votes
0answers
484 views

Are there any examples of WCS getcoverage requests done using ajax?

I am looking through openlayers to try to figure out a consistent format for generating views of coverages that can satisfy any wcs server, but mainly I'd like to get geoserver coverages. While I've ...
6
votes
1answer
2k views

Building a custom, dynamic legend using ArcGis-server js and dynamicMapServiceLayer

I have a dynamicMapServiceLayer that I am using to build a map application. There are about 10 layers in the mapservice that I am toggling using the setVisibleLayers action. I would like to build my ...
3
votes
1answer
493 views

Rendering error ArcGIS javascript API IE8

I have an issue when displaying features on a map in ArcGIS Javascript API V. 2.8. I want to know if this behavior is seen before, and what could cause it. In Internet Explorer 8 the map looks like ...
7
votes
1answer
1k views

How do we add a custom basemap in ArcGIS.Com that can be used in Javascript API?

It's possible to add a layer as a basemap in ArcGIS.com by checking the check box use as baselayer: But when I consume the map using: var mapDeferred = esri.arcgis.utils.createMap("<guid>", ...
7
votes
1answer
2k views

How to configure custom scale in Leaflet?

I have a custom WMS tileset generated using ESRI ArcGIS Server. I have successfully configured an OpenLayers page to display this basemap. The code is as follows: var map = new ...
2
votes
1answer
44 views

How to show layer when select another layer?

I have an OpenaLayers/gxp application. I have base and overlay layers groups. I want to show some overlay layers when select base layer. For example when i choose BaseLayer1 i want to show ...
11
votes
2answers
4k views

OpenLayers 2.12 and http basic authentication woes

I am trying to use OpenLayers 2.12 to display WMS layers from a server which has HTTP Basic Authentication enabled. I have tried to handle the authentication by putting the username and password in ...
3
votes
2answers
414 views

How does Mbtiles store raw image data in the tile_data field?

Looking at the MBtiles spec, the tile_data field of the tiles table is just a blob of a tile image. With this information, I expected to be able to take a data URI, string it of everything except the ...
3
votes
1answer
391 views

Convert ArcMap label expressions from VBScript to Javascript or Python

I have a large number of layers (hundreds) with label expressions written in VBScript. I am using ArcMap 9.3.1, and I'm now starting to export the layers as MPKs for use in our ArcGIS Runtime (WPF) ...
0
votes
0answers
235 views

Display a single country with OpenLayers

Can I display a single country using Openlayers? I'm not trying to restrict zoom levels or . I want only one single country to be displayed. The rest of the world cannot be displayed. My reasearch ...
1
vote
1answer
414 views

How do you get the coordinates from a drag event in the Google Maps API V3?

I have made a Google Version 3 Geocoder , I want to be able to pick up the coordinates of the route when it is dragged. I know how to pick up the coordinates giving the start and end points, but, ...
0
votes
1answer
148 views

Populating Dropdown based on Geoserver service

I am new to web programming here. I have a table which has multiple columns including: Restaurant Name,Restaurant Id, Lat, Lon, City, District, Country. My requirement is to build a web client using ...
1
vote
0answers
1k views

How to create a Google Maps with draggable routes with fixed markers

I have a webapp where I show a route on a map, I pass two address and show the route on map, so I'd like that this route should be draggable but the points A and B shoud be fixed. How to do this?
3
votes
1answer
499 views

How Can I Calculate Time from Coordinate?

For my application I am searching for an API or an algorithm for clicking point time and time zone. I dont know how I can do this but after getting time I want to calculate giving coordinate sun ...
3
votes
1answer
1k views

Google Maps Decodepath change variable name

I have this code: var directionsService = new google.maps.DirectionsService(); var request = { origin : start, destination : end, travelMode : ...
0
votes
1answer
824 views

Geojson multipolygon doesn't work with Leaflet bindPopup?

I have polygon and multipolygon data in Geojson format and when I try to bind popup for polygon, it works perfectly, and when I try to bind it for multipolygon, it doesn't work. Is that some Leaflet ...
0
votes
1answer
171 views

How to create customized side control bar in OpenLayers?

I could create a simple map using OpenLayers. But I want to have a customised side control bar. The one I created: The one I want to create:
3
votes
1answer
173 views

software architecture for creating routes?

I have a system that can alert staff by email if their device goes into/out of a geo-zone However, we now need to create a route, and then email if someone goes off this route Technically, how would ...
0
votes
1answer
159 views

“TypeError: this.options is null” in OpenLayers.Protocol.HTTP‏ [duplicate]

I'm using OL 2.11 with GeoExt 1.1. After testing and modifying this GeoExt example: http://geoext.org/lib/GeoExt/widgets/form/FormPanel.html, I had problems with destroying and reading the new ...
1
vote
1answer
143 views

How to replace protocol in geoext.form.formpanel‏‏

I've been scratching my head over this and I'm wondering if this is possible. I want to replace the protocol of the GeoExt.form.FormPanel in the following way: to render the formpanel, I defined a ...
0
votes
1answer
141 views

How can I overwrite the url of OpenLayers.Protocol.HTTP?

How can I overwrite the url of OpenLayers.Protocol.HTTP? I tried searchformPanel.protocol.url and it works (checked with console.log), but at the end the original url is sent (in the code ...
1
vote
3answers
7k views

Understanding the polygon handler function in Openlayers

Using openlayers, I want to be able to draw one polygon on a map. After one polygon is drawn, I want an event to fire that stops any more from being drawn until a button is pressed. My current code ...
4
votes
1answer
381 views

Export KML to SHP in Javascript

I need my Javascript browser application to convert/export KML documents into ESRI shapefiles. Is there any JS library that can do it? I tried googling, but no answers so far (at least, not in ...
2
votes
1answer
158 views

How to stop features to redraw unwillingly in OpenLayers

I have a problem where when editing features from a wfs vector layer. After some changes are made to the geometry, the feature redraws itself and the changes are lost. Usually the problem occurs more ...
0
votes
1answer
501 views

Openlayers loop through json array and output result with as javascript

Connection.php file which stored database connection code with json: <?php $username = "root"; $password = ""; $database = "roadmap"; $url = "localhost"; $con = mysql_connect($url, $username , ...
2
votes
1answer
417 views

Query a polyline layer using arcGIS's Javascript API

I'm attempting to query a polyline layer using the ArcGIS Javascript API I all ready have a lot of experience doing this with Point layers. So I set my Polyline layer up the same way and stopped and ...
0
votes
0answers
519 views

ajax not working with postgresql

I know is a silly question but I thought I should ask since you guys know more about postgresql. Sorry for being analytical, but I think its the only way to make my question clear. I'm using ...
1
vote
1answer
272 views

ESRI Javascript APT FeatureSet input to custom Geoproecessing tool

I have an ESRI Javascript application that uses a geoprocessing service that uses a cutsom GP tool. Since I have a set of values to be passed to the GP service I am planning to pass in it as a record ...
2
votes
1answer
366 views

Ordering Layers Dynamically

I'm adding layers to a GeoExt map panel map dynamically in response to a user's selection. I have a corresponding FeatureStore definition from which I create the layers. When a new layer is added, I'd ...
5
votes
1answer
200 views

How to draw graphics in a child window?

I am adding some graphics to the map in a parent window, and I would like to show the same graphics in a child window. I am using the ArcGIS Javascript API (version 3.1). I have written code as below: ...
1
vote
2answers
757 views

OpenLayers.Class with OpenLayers.Control.GetFeature

I'm wondering if someone could point me in the right direction to force the BBOX of OpenLayers.Control.GetFeature to be always in long/lat coordinates. I'm trying to get this with OpenLayers.Class, so ...
4
votes
1answer
1k views

Drawing Ellipse with OpenLayers

I am trying to draw ellipse on the client side using openlayers with some mathematical functions from drawing ellipse with svg. I have achieved drawing it but not rotation what I have written for ...
4
votes
3answers
2k views

How to access an wms layer that requires authorization via OpenLayers?

Is there a way to send username and password parameter to a wms layer that needs authorization? If not, I guess it's perhaps a non-spatial thing to solve so that you before the javascript sends a ...
0
votes
1answer
752 views

how to find vertices for a geometry in OpenLayers

I am having a LineString, where I need to find the vertices logically and save those vertices. Can anyone help me out. Or else how below can help me. OpenLayers.Geometry.LineString = ...
4
votes
1answer
8k views

How to Zoom to a FeatureLayer Using ArcGIS Javascript API

I am making a web application using the Javascript API and am trying to zoom to a feature layer from a row click in a dojo data grid. I have this working for a dynamic layer, but am having issues with ...
2
votes
1answer
996 views

Updating filter values and update map

I'm developing an ExtJS3.4-GeoExt1-OpenLayers2.12 GIS application. For basic functionality I need to filter layers to get specific data from a Geoserver WFS layer. Filter is done through the ...
3
votes
1answer
900 views

How to avoid corrupt geometries when translating between TopoJSON and GeoJSON?

I'm trying to display some geojson vector features on a leaflet map. The size of my GeoJSON is too big (25.4mb of data, 8.47mb gzipped), so I'm trying to use a TopoJSON format to reduce the size ...
5
votes
2answers
3k views

Turn Popups On/Off in ArcGIS Online Webmap via Javascript API Web Application

I am writing my first ArcGIS Javascript API web map application and consuming a web map authored in ArcGIS Online. The ArcGIS Online web map apparently does most of the work for me in terms of ...
1
vote
0answers
219 views

How to set up the layer order with Google Maps API?

I'm developing a web mapping site (using google maps api 3.0 and javascript) that combines wms layers and ground overlays (uploaded rasters) that are displayed on top of google maps. The software is ...
0
votes
1answer
430 views

How to read/write a/from a file in javascript with prototype.js/jQuery.twFile support OR anyotherway

I want to write my data into a file from OpenLayers, I have gone through Prototype.js and jQuery.twFile.js or anyother way to write into a file.
1
vote
1answer
912 views

How to use filter in GeoExt.FeatureStore?

I have a FeatureStore: var protocol=new OpenLayers.Protocol.HTTP({ url: ...