JavaScript is a prototype-based, object-oriented scripting language that is dynamic, weakly typed and has first-class functions.

learn more… | top users | synonyms

0
votes
0answers
21 views

Bounding the Google Maps Search area to my Fusion Layer area?

I have a searchable Google Fusion Layer of Glasgow Postcodes that highlights the searched areas on a map. The search works fine if I enter a full postcode (for e.g. G1 1BL) that matches the data in ...
1
vote
1answer
118 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 ...
0
votes
0answers
18 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 ...
0
votes
0answers
29 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
43 views

Jsonp call to geoserver

If I try, like this way: $.ajax({ jsonp: false, jsonpCallback: 'getJson', type: 'GET', url: ...
1
vote
1answer
37 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 ...
5
votes
4answers
4k views

How to get JSON from Geoserver using AJAX request

I am building a web mapping application using Leaflet and a sort of customized WFS-T API to place and retrieve features from PostGIS. I have the script for putting features in PostGIS tables down ...
1
vote
1answer
55 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
44 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
0answers
49 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
110 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. ...
2
votes
3answers
178 views

How to visualize Google Fusion Table Map using JavaScript?

The simplest question. When you create a google Fusion Map with geographic data, Google provides you with an iframe link to display the Map on your website. But i need to display that information ...
1
vote
1answer
165 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 ...
0
votes
0answers
286 views

Openlayers Vector Feature label not Visible in IE 8 but visible in Google Chrome…?

I have created a WEB MAP using Openlayers-Geoserver-Postgis.... The Label of one of the Vector feature layer is not visible in Internet Explorer 8(IE 8) ,but clearly visible in Google Chrome ...
1
vote
2answers
66 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 ...
5
votes
4answers
7k views

How to display mouse position as tooltip in OpenLayers?

I want map coordinates as mouse over effect in OpenLayers. I am using the following code, however it is showing pixel coordinates: map.events.register("mousemove", map, function(e) { ...
1
vote
2answers
2k views

How to initialize a WFS Layer?

Here is the code block (the layers are stored in Oracle database): var saveStrategy = new OpenLayers.Strategy.Save(); var adresspt_wfs = new OpenLayers.Layer.Vector("Address points WFS", ...
3
votes
1answer
2k views

CloudMade Routing with Leaflet: route is not displayed

I am trying to consume the CloudMade routing API using Leaflet. So far, I have managed to pass points and receive a response, and parse that response into an array of points. The array of points is ...
0
votes
1answer
91 views

Visualizing information when click in polygon‏ - Spatial join

I am new to cartodb, right now I am trying to do something similar to the cartodb tutorial: Create your first map with CartoDB.js, but with polygons using my own map. For example: I did a spatial ...
1
vote
1answer
131 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 ...
0
votes
1answer
71 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 ...
1
vote
2answers
72 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 ...
1
vote
0answers
77 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 ...
3
votes
2answers
98 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 ...
2
votes
1answer
427 views

Can I use leaflet to access a WMS service published as an OpenLayers javascript API?

I would like to add this layer to a site I'm working on that uses leaflet: http://116.240.195.134/vicmapapi/UserGuide.jsp The API itself is a javascript file based on OpenLayers: ...
1
vote
0answers
65 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
15 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 ...
3
votes
0answers
284 views

Using Custom Map Projection On Leaflet

I have an application displaying a EPSG:3414 map running on Openlayers - jsfiddle working sample that works. I am trying to implement the same on Leaflet - jsfiddle non-working, it is not working as ...
0
votes
0answers
45 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
16 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?
2
votes
2answers
405 views

How to determine intersection between geojson feature and given coordinates?

I'm overlaying a leaflet map with features of geojson, fetched with d3 and added as SVG elements to the DOM. My geojson contains too many features to render at once, so my goal is to add to the map ...
0
votes
0answers
23 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
56 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 ...
3
votes
1answer
1k views

problem adding pop-up to GeoJSON layer in Leaflet

I'm new to working with the Leaflet API and am running into trouble with creating popups for a GeoJSON layer. I've looked at the following post as a reference and am still having difficulty: binding ...
0
votes
1answer
39 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 ...
0
votes
1answer
49 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
1answer
80 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 ...
1
vote
2answers
47 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. ...
2
votes
1answer
125 views

Increasing OpenLayers Max Zoom Level

I develop HTML pages by using OpenLayers, which pointing to a local GeoServer WMS service. On displaying a layer, it stops at its available max zoom level, but it is still too small to manipulate (a ...
0
votes
0answers
24 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
0answers
28 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
52 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
1answer
74 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 ...
0
votes
0answers
22 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 ...
0
votes
0answers
122 views

Leaflet and Geoserver WFS

I have problem with Leaflet...i tried to connect Leaflet with Geoserver WFS, but in console i have error: SyntaxError: missing ; before statement ...
8
votes
0answers
99 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 ...
0
votes
1answer
46 views

How do I change my title of app?

We have a map with streets as basemap. We have been trying unsuccessfully, for the last two days to change the basemap to tiled layer with no success at all. I am posting a snippet because script is ...
1
vote
1answer
159 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
1answer
34 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
2answers
71 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 ...