A free and open source JavaScript library that is used by Web developers to navigate HTML documents, handle events, perform animations and add Ajax interactions to Web pages.

learn more… | top users | synonyms

1
vote
0answers
23 views

Leaflet Drag and drop to change existing markers

I'm working on a project where the user should be able to drag an image to a pre-existing marker and have the marker update color if the value of the marker (a value w/in the geojson) and image (a ...
0
votes
1answer
33 views

how to display the coordinates of a openlayers map with a jquery in my asp.net textbox?

this is my initmap.js OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { defaultHandlerOptions: { }, initialize: function (options) { this.handlerOptions = ...
3
votes
2answers
90 views

Populating D3 Graph with Cartodb

I have been looking at D3 and following along with their basic tutorials. In the documentation you can use json files to create graphs, however I am confused on how to make the connection from my ...
0
votes
0answers
39 views

OpenLayers map in jquery UI dialog

I asked the question here but haven't got much reply. I guess this is a better place :) When I put OpenLayers map in a dialog, the zoom wheel seems not working. Also, when trying to resize the ...
2
votes
1answer
107 views

Make sidebar div active on Marker click (and vice versa)?

What's the best way to change an element to active when you click on a marker. For example, when you click on a marker on a Leaflet map, how to make it so the sidebar element that's related to it ...
1
vote
2answers
80 views

Esri GIS Bookmark but with out a dijit

I need to create a "Bookmark" like drop down on my site. Inspiration comes from samples:1) http://developers.arcgis.com/javascript/samples/widget_bookmarks_dropdownbutton/ and 2) ...
0
votes
0answers
39 views

I'd like to accelerate the refresh of a Open Layers vector layer throught a jqueryui slider in Firefox

I want to develop a kind of timemap combining the jquery-ui slider component and the OpenLayer library. I'm simply using the Vector layer of OpenLayers with Rules style. map = new ...
0
votes
0answers
25 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 ...
0
votes
1answer
40 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
0answers
54 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.
0
votes
1answer
102 views

Openlayer map add combo in panel

I just want to add combo box on openlayer map panal. I dont know how to add combo to openlayer panel so currenly i have set absolute location to combobox , like this http://jsfiddle.net/4zNH6/ ...
1
vote
1answer
165 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
122 views

Can individual feature properties be retrieved from the CartoDB.js API?

I'm building an application that uses CartoDB to show users how a proposed redistricting plan would affect them. The user enters an address and that fires a ST_Intersects query to CartoDB, the result ...
1
vote
2answers
85 views

jQuery element value to js object ID

I am trying to set the visibility of a layer in Openlayers map according to a checkbox status with a class ".layercheck" and value is the name of the Openlayers layer. So here is my HTML: <input ...
3
votes
1answer
90 views

Can't get simple map to show up on my test site using CartoDB

So I'm trying to get a simple test-site setup but it's not working. Whenever I load the site I can very quickly see the controls flash on the screen then go away. The when not doing local testing, ...
1
vote
1answer
712 views

Uncaught SyntaxError: Unexpected token : when using ajax

I try to call json data from geoserver, but when i try to run it in chrome, it return this following error "Uncaught SyntaxError: Unexpected token :" This is my code, function ...
0
votes
1answer
81 views

jQuery tabs into OpenLayers switcher layers [closed]

How can I put jQuery UI tabs in openlayers layerswitcher? I can not imagine how this can be done ...
0
votes
1answer
269 views

Use new OpenLayers.Filter.Logical from OpenLayers into jQuery

I've a small GIS app, displaying stations on a map. Very simple. At start, none of the stations are displayed, even if its layer is enabled. What I want, when I click on a div, is to display one the ...
0
votes
0answers
156 views

Leaflet - How to display all stacked marker information on a single mouse click

I am using leaflet to view layers from GeoServer. There is a WMS basemap layer and WFS feature layer returning GeoJSON data. When I click on a Marker I use jQuery as the popup. If I click on a stacked ...
0
votes
0answers
84 views

How to animate .olControlLayerSwitcher with Jquery?

Not know much about css but some how got strucked in setting css property. I am using Openlayers .olControlLayerSwitcher class. Here without using !important keyword, LayerSwitcher will not get move. ...
3
votes
1answer
339 views

ArcGIS JS API: Zooming with mouse wheel/double-click forces pan

I have a map that I'm initializing off-screen and sliding in using jQuery. For some reason zooming in with the scroll wheel or by double-clicking causes the map to simultaneously pan down (or pan up ...
1
vote
1answer
221 views

OpenLayers Vector polygon and Jquery Droppable

How can I use Jquery Droppable to drag and drop an Icon over an openlayers polygon vector and select the polygon while over on hover? I have managed create a create a popup when over a div element, ...
0
votes
0answers
90 views

How to update data attribute GML layer without reloading local file?

I want to change data attribute from GML Layer according to value which passing from combobox. So when i change value from combobox, map will give different color according data in mysql. Can you help ...
0
votes
0answers
121 views

ESRI add graphics to a layer via ajax call

I'm creating graphics layer with ajax return. I can see the graphics layer in the map, but the points don't appear on the layer, I'm adding the points but somehow something seems missing. Jen is an ...
1
vote
1answer
344 views

Texture overlay in d3 map

D3 map can be drawn and colored as shown in this example : http://techslides.com/demos/d3/d3-world-map-zoom-points.html. I need to overlay a texture or image within the boundary of a given country. Is ...
0
votes
0answers
227 views

Looking for ArcGIS API for javascript and Jquery samples

I'm new in ArcGIS javascript API .I found tons of samples of ArcGIS javascript API and DOJO . it was very interesting for me but i know Jquery and i'd like to use Jquery to develop webgis.Is there ...
0
votes
1answer
192 views

OpenLayers: How to add permalink long/lat anchor to links outside of map on page

I would like to extend the funtionality of OpenLayers that appends, on-the-fly as the user zooms and pans the map, the longitude/latitude parameters as a anchor to the URL in the browser's address ...
2
votes
0answers
138 views

Show geoJSON properties in jQuery Mobile Panel

First off I'm a novice at JS so please bear with me if this is a simple task to complete. I'm currently using the stock LeafletJS popup bubble to display the properties from my geoJSON. However, I ...
0
votes
1answer
1k views

leaflet fitBounds with multiple marker

I have created two checkboxes. If I check one it will zoom to a point with marker. If I uncheck the checkbox the marker removed. Similarly second one is working. But I want to do if the two checkboxes ...
2
votes
1answer
713 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
2answers
308 views

Using jquery to reset layer in OpenLayers

I've used a combination html, jquery and cql to redraw layers in Openlayers using specified parameters. This worked fine as seen here: http://www.dartmoor-npa.gov.uk/index/test-map3 I also want to ...
4
votes
1answer
260 views

How to highlight feature clicked as row in table using OpenLayers+jquery?

I am a Masters student from Sweden. I am doing my Masters thesis on Internet mapping. In my project I am trying to display research data from my department on Google maps. I am using OpenLayers java ...
1
vote
1answer
89 views

jquery communication with arcgis services

I am working with the ArcGIS JavaScript API for my application. My app users are stored in a table published in a map service. Whenever a user wants to connect to the app, he needs to provide a ...
2
votes
1answer
349 views

call child div function from parent (not using window.opener)

This is a a Javascript/JQuery question that is directly related to the ArcGIS Javascript API... I have a map div created using a 'data' tag in HTML, which becomes visible on a button click. (I'll ...
0
votes
1answer
576 views

Heatmap.js is not displaying on OpenLayers

I tried to follow the example on the heatmap.js but for some reason it is not displaying the heat map layer, and the layer control is not working. Maybe I am missing something stupid. Can someone ...
2
votes
1answer
229 views

Can arcserver be used to populate jquery autocomplete?

I would like to set up autocomplete on a text box using jquery autocomplete 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 ...
2
votes
1answer
1k views

OpenLayers + GEOExt + extjs. VS OpenLayers+jquery

Could some one maybe tell me if there are any real benefits of using OpenLayers + GEOExt + extjs. as oppose to using only OpenLayers and maybe jquery for client side webgis apps? Edit: thanks for ...
1
vote
1answer
153 views

passing geocode results object to another file

I'm using a geocoding plugin (Leafet.GeoSearch) on a map and I'd like the results, being the LatLng point coordinates, etc available as a parameter for GeoServer cql filtered calls. It doesn't seem ...
0
votes
1answer
286 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.
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 ...
6
votes
2answers
6k views

Adding/Removing Leaflet GeoJSON layers

I'm trying to show different GeoJSON layers at different zoom layers using the Leaflet API. I can load and display all three layers at once (though I don't actually want them all to show at once). I ...
2
votes
0answers
63 views

Features disapearing

When I add a polygon feature it shows on the map. When I add another one the first one disappears. The code for adding is below: $.postJSON('@Url.Action("GetLayers")', { "planId": planId }, ...
0
votes
1answer
3k views

Google Map - display specific markers popup using a list of markers

I have the following code: <script type="text/javascript"> window.onload = function() { // Creating a new map var map = new google.maps.Map(document.getElementById("map"), { ...
0
votes
1answer
387 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 , ...
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 ...
0
votes
1answer
224 views

drawing graphic layer on client side with arcgis

hello I'm usign ArcGIS JS api v. 2.8 and.. I've got some problems with drawing graphics point on client side. The problem is, when I draw points by first time by JS api everything is OK. But when ...
1
vote
1answer
319 views

load map parameters after opening new window

I am trying to open a new window from an existing window, which will contain a map with an extent derived from the original window. In other words, the user will zoom to an area in the original ...
1
vote
0answers
250 views

What are some really cool web/mobile GIS UI examples? [closed]

I need some ideas on eye candy for our product. We have to display maps with lots of data on accessible through the web. Most sites I have seen have a Google, or OSM map with markers and layers ...
2
votes
1answer
602 views

How to make OpenLayers.Popup draggable?

I've used jquery-ui draggable option as following but the moving popup can not be ended once dragging has started. Is there any another method to make OpenLayers.Popup draggable? popup = new ...
3
votes
1answer
2k views

Parsing a GeoJSON file with jQuery

I'm trying to iterate through a GeoJSON file (below) and eventually populate an array with a few attributes within "properties". I keep coming up short working through various examples I can find. Do ...