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

ESRI Mobile Javascript API Click Events not happening on mobile devices

I have a a map with a couple of feature layers. Using a mobile popup to display attribute data of graphics when you select them. Everything looks great on the desktop. However, when you get to any ...
3
votes
1answer
610 views

Cartodb - SQL query of public visualization of a private table

The team at CartoDB have recently(last few days) made some useful updates that now allow public visualisation maps to reference data in private tables. The change has only been made in the last day ...
1
vote
0answers
70 views

ArcPad Jscript ThisEvent.Object, autofill form with multiple pages

I have a script that I'm trying to use to autofill the controls of an ArcPad form with controls on multiple pages. The 'autofill()' function is referenced in the form's onload event and I would like ...
1
vote
1answer
141 views

Jsonp call to geoserver

If I try, like this way: $.ajax({ jsonp: false, jsonpCallback: 'getJson', type: 'GET', url: ...
1
vote
1answer
125 views

How do you export features in OpenLayers 2.13?

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://openlayers.org/dev/examples/draw-feature.html Quite ...
0
votes
1answer
58 views

Passing variables through infoTemplate

I have a problem passing variables through infoTemplate. Its like there's something funny happening with the scope. Certain variables work but when I get too crazy with them my map doesn't load. ...
1
vote
1answer
127 views

Problem with using a circle as polygon for querying PostGIS

I'm trying to query PostGIS and find some object features that intersect with a circular buffer created by the user using OpenLayers, JavaScript and PHP. I use the following code for creating the ...
0
votes
1answer
392 views

ArcGIS map service layer not loading properly

I'm at a total loss. My initial problem was an issue with the layer not loading at all when the page was set to the full extent, despite having changed the Min/Max Scale settings generously when ...
1
vote
0answers
95 views

Change The OpenLayers 3 script into openlayers 2.13

Hi all I want to change the code from pgrouting latest workshop which is used the Openlayers 3 beta to Openlayers 2.13 The code is in here http://workshop.pgrouting.org/chapters/ol3_client.html I ...
0
votes
0answers
231 views

Venue/Indoor Map using D3.js and Geojson

I have created geojson file which contains all the features of 1st floor of a shopping mall. I got that venue map projected using d3.js with different colors but only some parts not the complete map. ...
0
votes
1answer
373 views

Browse (add/remove) ArcGIS Server Services (Layers) from the ESRI Javascript API viewer

I am quite new to the Javascript API. I am not if there is a widget that does what I would like but I am trying to create a web map that allows the users to choose/add/remove layers located on our GIS ...
1
vote
2answers
642 views

Unable to get Mapbox leaflet-omnivore to load markers from .csv

I'm using the Mapbox.js API to build a really simple web map using a .csv file to place markers with tooltips. I'm trying to use the suggested leaflet-omnivore library to easily parse the csv and ...
1
vote
2answers
218 views

What is a good Javascript API for weather data?

I'm looking for a good javascript api which gives access to a weather data-base. I want to extract information like average number of rain days, amount of sunshine and average temperature. Is there ...
1
vote
1answer
403 views

CartoDB.js - Accessing table fields in hover function

I am new to CartoDB.js and javascript in general, and I am attempting to highlight polygons in response to a mouse hover. My plan of attack attempts to utilize one of the interesting templates ...
2
votes
2answers
292 views

Authentication in Geoserver 2.4.x from a web application

I am trying to build a web application using html and javascript from which I want to login to geoserver hosted at: https://weaveprod.ucdp.utah.edu/geoserver/web/ I have written the following code for ...
1
vote
1answer
438 views

Leaflet JS calling animatedMarker.stop() from event listener

I'm using the animated marker plug-in for Leaflet JS and would like to stop the marker from animating when it reaches a certain lat lon position. Currently I'm using Leaflet's 'move' event listener ...
2
votes
1answer
585 views

set infoTemplate for various graphics in graphics layer in loop

I am successful at getting an info window pop up on the event click of a marker on a map. Now, what I'm having trouble with is passing unique information for each graphic in the loop to the individual ...
2
votes
1answer
285 views

How to get data from TileMill tileLayer properties in Mapbox for click/hover

I've successfully used Leaflet to load a geoJSON polygon-shapefile with data, and added click and hover interactivity to the layer. For a large dataset, I switched to mapbox.js 1.6.1, used TileMill to ...
1
vote
2answers
145 views

How can I create a hexbin layer using the SQL and CartoCSS parameters in cartodb.js?

CartoDB has a great hexbin visualization wizard baked into the client dashboard: However, I like using cartodb.js to customize events and interactions; in particular, I'd like to make styles ...
3
votes
2answers
643 views

Force an ArcGIS API for JavaScript WMSLayer to use EPSG: 900913 (instead of 102100)

I have a use case where an external WMS server can serve maps in the Web Mercator projection using EPSG code 900913, but won't recognize ESRI's 102100 code. My question is: can I force all WMS ...
0
votes
0answers
20 views

WMS layer disabled when i grouped

i am using geoserver 2.4.0 for my GIS based web application.My Wms layer disabled when i grouped more than 3 layer in my application.Previously it worked fine.This problem occurs in real time only,in ...
0
votes
0answers
99 views

OpenLayers drawing features on clustered layers

I'm having problems adding and moving features on a clustered (wfs) layer. When I add a new feature all the clustered ones disappear from view. Plus much hacking needed to actually save the new ...
1
vote
0answers
24 views

Setting global CSS and Javascript in .KML

I've tried googling this question, but I was wondering if it is possible to declare common styles (CSS) and Javascript functions that are being referenced within the tag of multiple placemarks?
0
votes
0answers
43 views

What are some ways to put points on a map and information about those points in a sidebar?

I'm trying to figure out the best way to have a sidebar that will have information about points on a map (like you see in something like yelp). I can get the points on the map but I'm struggling to ...
1
vote
0answers
156 views

QGIS print composer error due to Java script problem!

I've been experiencing a problem with the QGIS print composer. I am working on a Linux Ubuntu platform (Release 12.04 (precise) 64-bit) and I am using QGIS 2.0.1 Dufour. I need to export a number of ...
0
votes
1answer
57 views

only one popup displayed on the openlayers

The issue is that i only one popup on the map is dispalyed. I can see all the points but popup can see only on the last point of the list. Please check my code http://jsfiddle.net/3HSjY/24/ I'm stack ...
1
vote
2answers
228 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
101 views

Problem - ST_AsGeoJSON return text with accolade

I am saving a result of ST_AsGeoJSON(..) into csv file. But the results I got can't be interrupted as an object later on. How can I polish and delete the accolades that I don't need. ...
0
votes
0answers
41 views

Openlayers getFeature from WFS with Specific ID

I'm working with OpenLayers and have the NHDPlus Catchments for the North Atlantic. I have built a web mapping application in Javascript for viewing and delineating basins from these catchments, ...
0
votes
0answers
145 views

Validate coordinates in DMS format in a Textbox

I have to validate a textbox which is taking coordinates in Degree Minutes and Seconds or Degree and Minutes or in Degrees format divided by a space between them.
1
vote
0answers
234 views

Snapping in Esri javascript api does not work on mobile device

I have an Esri map loaded using the javascript api. I try to enable snapping, where a point should always snap to a given line. I have a snap point symbol that will trace the line to snap to when I ...
0
votes
0answers
56 views

How to use “outputConfig” to configure LayerPanel from GXP

Can outputConfig be used for functions too - not just configuration? I have this code in geoexplorer.js (using GeoExplorer 2.4.3) which doesnt work: var GeoExplorer = Ext.extend(gxp.Viewer, { ... ...
0
votes
1answer
350 views

How to use cartodb.js with API key for privacy of data

I would like to use cartodb.js in my web page reproduce a visualization that I created at CartoDB. But I want to keep private my visualization and data at CartoDB (and I am going to secure my web ...
0
votes
0answers
47 views

How to realize two overlaying layers? One with Popups, the other one with Info-div!

I'm trying to display two overlaying layers (geojson). Layer1 should give me information by hovering over it (works fine based on the Leaflet Choropleth Map Example. Layer2 is situated within Layer1 ...
1
vote
1answer
341 views

Leaflet setView with non lat/long CRS

Is it possible to use setView when using an alternative CRS? var map = L.map('map',{crs: L.CRS.EPSG26915}).setView([4970081,477018], 13); // Returns: Uncaught TypeError: Cannot call method ...
1
vote
1answer
145 views

using WebTiledLayer function

Using esri javascript api version 3.8, I am trying to use some cached tiles from our server at http://hexe.er.usgs.gov/ifhp/will/tiles/ using WebTiledLayer. I believe that our tiles are set up as ...
9
votes
1answer
196 views

Mercator bias plot in Leaflet

I was inspired by this wikipedia image from the mercator projections page to hack around with leaflet. The idea was to interactively have your cursor move a continent and that it would be corrected ...
1
vote
1answer
75 views

Change CartoDB map with new center

So I already have the code working to initiate a map and to populate it with data points with a dynamic slider. What I am trying to do now is to have a user type in a query and when they submit that ...
1
vote
1answer
451 views

OpenLayers + GeoServer's WMS — Passing Feature ID into a Variable

I have a WMS PostGIS-based polygon layer served by GeoServer, and whenever I click on any feature I want to get its gid value, so I can pass this value to the DOM. Unfortunately, I could not find a ...
1
vote
2answers
168 views

Generating Values in the Attribute Table

In the attribute table within GIS, I have a certain column with ascending values, and I want to assign ID numbers (for easier readability and display) to a corresponding column. So for instance: Feet ...
0
votes
1answer
128 views

OpenLayers - Resize a point on zoom out?

I need to resize a point on zoom. When you deep zoom the point get larger and on zoom out the point is smaller. In fact, the post here - How to resize a point on zoom out? seems to have exactly ...
0
votes
1answer
182 views

Seeking ArcGISTiledMapServiceLayer Sample

I'm trying to use ArcGISTiledMapServiceLayer to show a cached set of image tiles on our local server. There is good help on the arcgis developer's site but I can't seem to find good examples. None of ...
3
votes
2answers
101 views

How to display information in a div outside the map?

I tried a bit around and created a simple map with two polygons(most of the code I got from the Interactive Choropleth Map Tutorial). I added a "L.control()" to show information about the polygons in ...
3
votes
1answer
295 views

leaflet choropleth map using dynamic value

I am doing a choropleth map using leaflet and JSON data. I got a clean tutorial in leaflet site. In that tutorial the used us-states.js JSON file where the choropleth was based on the ...
0
votes
1answer
158 views

Add hour and seconds to CartoDB/Torque animation

A while ago I made a CartoDB/Torque animation that displayed hours and minutes while playing. Sujay v. helped me out with the code here: https://groups.google.com/forum/#!topic/cartodb/xpxF4fSV7ZI ...
3
votes
1answer
132 views

Limits to torque and cartodb

Bit of a theoretical one this, but I was wondering if anyone had tried to use CartoDB and Torque with any big(ish) data. What I am talking about is having the location of 75,000 people at 1 minute ...
1
vote
1answer
216 views

Change coordinate system using SQL or Javascript

Is there any built in function in SQL Server 2008 R2 which can transform the cordinates from 102100 to 4269 coordinate system something equivalent to ST_Transform from postgres. If there is algorithm ...
1
vote
1answer
416 views

Google Maps V3 + multiple Fusion Table layers = inconsistent markers?

One of my colleagues is working on a map for a news story and is having some difficulty getting the markers to consistently show up. Changing the order in which the layers instantiate is causing ...
2
votes
1answer
1k views

How to add a legend and toggle the legend with a layer in Openlayers?

I'm currently trying to add a legend to my map and to show/hide it, when the corresponding layer (an image layer) is shown/hidden. My approach was to add a custom button with a .png of my legend. That ...
0
votes
0answers
194 views

How to pass multiple latitude and longitude to bing maps from Json

I have an requirement in which i have some five latitude and longitude which is coming from JSON. I am printing the same in the web page. Now i need to pass those five values to BING maps as ...