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

2
votes
2answers
184 views

Google Maps need to click twice to get marker click event to trigger

I have a google map that I am populating with real estate listings from a database. I have set it up to refresh the listings when the map is panned or zoomed. I am using the dragend & ...
4
votes
1answer
510 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
65 views

jquery range slider to filter geoserver layer attribute

i would like to apply with jquery range slider a filter to an attribute of a geoserver layer. I prepared the code for the shape topp:state, attribute PERSONS. How is it possible filter the PERSONS ...
1
vote
1answer
190 views

Google Hybrid Map tiles won't load in OpenLayers when centered on certain position

Since the Google Maps API update to V3.2 (17 Feb 2015) our maps have not been loading to their initial state, centered over the Gulf of Mexico. When the center location is: center: new ...
1
vote
1answer
299 views

cartodb Feature Click with two overlapping layers

We are using Google MAP API V3 and CartoDB. I am trying to create the custom info box window as user clicked on CartoDB points marker. We have two layers on Google map first one for UK wide ward area ...
1
vote
1answer
241 views

How to append result to Geocoder text box using ArcGIS JavaScript API?

I want to append result of a custom search in a Geocoder text box in ArcGIS JavaScript API by overriding the default result. I have written the below code for this, but I am not getting a ...
1
vote
1answer
232 views

Why do I have to reload the page, to show the Map correctly?

I added a map, in the way I'm supposed to, but why do I have to reload/refresh the page, to get the map (almost) as I want to? This is, what I mean: Map before reloading the page: Map after ...
1
vote
1answer
14k 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 ...
1
vote
1answer
1k 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
1answer
15 views

CartoDB JQUERY function init() fail

Absolutely stumped. Simply attempting to toggle layers using cartdb and jquery much like this tutorial. After sniping the console I get init() is not defined? However this only occurs after adding ...
0
votes
1answer
19 views

zoomin and zoomout in google maps

Friends i am creating javascript web application using google maps. i am trying to create a tool for zoomin and zoomout option.i created two buttons for zoomin and zoomout, now i am trying to activate ...
0
votes
1answer
21 views

Drag issue on an OpenLayers map inside a jquery ui draggable div

I'm trying to put an OpenLayers map inside a draggable(); div. The issue is that when I try to drag the map, all the containers drag too. Any ideas? Example: http://jsfiddle.net/0njnady6/
0
votes
1answer
13 views

Fetch the selected value from scale toolbar

can somebody guide me how to fetch that value shown in the image? using jquery and or PHP language?
0
votes
1answer
184 views

Leaflet: how can I update content of popup by jQuery

in my popup is a spinner with class=spinner and an empty container for addon informations. I want to hide after successful ajax. I want to add some html in a container. I tried this: ~~~ ...
0
votes
1answer
37 views

Inserting full bleed images in browser background instead of maps using CartoDB?

I am building a product that will utilize high fidelity photography. I would like to show my photos in a slideshow format that takes up the entire area of the browser. CartoDB and the Odysssey.js ...
0
votes
1answer
253 views

How do i integrate Clustering into my Google Map?

How do i integrate clustering for my google map? I have found a few codes but i'm not sure how to combine both so that it won't mess up the whole site. This is my current code: <script ...
0
votes
1answer
1k 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 = ...
0
votes
1answer
61 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 ...
2
votes
0answers
64 views

unselect all Features with jquery dialog close button openlayers 2.13

how can one unselect all Features with jquery dialog close button function in openlayers 2.13? View Entire Project Here (some buildings are not yet clickable) incorrect code: ...
2
votes
0answers
212 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 ...
2
votes
0answers
205 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 ...
2
votes
0answers
67 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 }, ...
1
vote
0answers
100 views

Plotting points on a map, the json objects retrieved from a database; using WebGL shader code

I am using an OSM dataset using which I am plotting those points on a map (google maps API). I am plotting these points using webgl shader code (see:  http://psousa.net/demos/webgl/) The above link ...
1
vote
0answers
54 views

ESRI addProxyRule causing issues with back button functionality in Firefox

Currently, i'm using the addProxyRule to set up the proxy to be used when calling arcgis. I'm then taking that result and generating a url to take the user to a different part of our site pertaining ...
1
vote
0answers
51 views

Accessing Time-Enabled Layer/adding time slider to webmap using google maps as basemap

I have the wireframe that I need for my webmap along with the arcgis map service layers (with time enabled data). I want to have two map divs with two time sliders that use the same service layer in ...
1
vote
0answers
476 views

Waiting on AJAX result in main JS function

So .... my main init()Javascript function has these 3 lines: sarea = GetArea(Uname,UIDfield,Table, document.getElementById("Source").value); darea = GetArea(Uname,UIDfield,Table, ...
1
vote
0answers
241 views

Geoserver GetCapabilities and CORS

Using WMS I do a GetCapabilities request on a geoserver. This works in FireFox, but nog in Chrome, Safari and Internet Explorer. The point is that in de web.xml from the server I did add: ...
1
vote
0answers
125 views

How to change dialog box with jQuery Mobile on OpenLayers

I have a problem with dialog box made with jQuery Mobile on OpenLayers. I want to make a popup box instead of a dialog box, but when i click the point the info for the point appears at different ...
1
vote
0answers
589 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
0answers
16 views

Autocomplete “select” not centering on map

Everything seems to be working good until I select from the list of names. The map isn't centering on the proper coordinates. I'm using Jquery UI and and openlayers 3. here's my code: $(function ...
0
votes
0answers
27 views

Jquery attr() funciton returning “undefined” for GetCapabilities Request

On my webpage where I am displaying my maps, I want to add a link to the metadata of the selected map. I have specified the link in GeoServer in the MetaDataURL field, and should be able to retrieve ...
0
votes
0answers
34 views

How to access the Metadata link URL field of GeoServer using the OpenLayers Library?

Geoserver v: 2.4.4 OpenLayer v: 2.13 All maps are WMS. In my javascript I use "layer.name" to access the Title of the specific map as specified in my GeoServer layer. Using jquery I was able to ...
0
votes
0answers
23 views

Refresh Openlayers vectorLayer every 5 seconds with jQuery and Ruby

Ich want to refresh my vectorLayer in OpenLayers every 5 Seconds using a jQuery. How do I have to do this? The data for the Layer is stored in a Ruby KML. Just look at the Code. Ruby method for the ...
0
votes
0answers
49 views

How can I get the mouseover event to work in my Leaflet.js map?

I have been trying to follow this mouseover example on the Leaflet.js website but I can't get my test version to work properly. The mouseover works only in some shapes at a time, but the mouseout ...
0
votes
0answers
44 views

Refresh map after updating chart elements

I need to refresh an openlayers map after updating the size of pie charts in a mapfile displayed on the map (on button click). I cannot refresh the whole page or I lose the data. It works when I ...
0
votes
0answers
54 views

Leaflet: binding an event to the click of a link within a tooltip/popup

So I have polylines on my Leaflet map which I have bound to embedded YouTube links. var container = $('<div />'); container.html("<iframe width='280' height='157' ...
0
votes
0answers
130 views

How to make the value showing on a leaflet heatmap like this one?

I'm attempting to use leaftlet.js, and heatmap.js (github.com/pa7/heatmap.js/) following this example: www.patrick-wied.at/static/heatmapjs/example-heatmap-leaflet.html But I want to show the value ...
0
votes
0answers
70 views

Post coordinates to Php

I am trying to send (x,y) coordinates from script html code to PHP but it doesn't work: -Script code: searchControl.on("results", function (data) { results.clearLayers(); for ...
0
votes
0answers
57 views

How do you filter mapbox layers?

I have 6 layers that contain grid, feature, and tile layers. var layers = [{ name: 'basemap', minZoom: 0, maxZoom: 19, layer: L.layerGroup([ ...
0
votes
0answers
51 views

Possibility of Multiple Popups on single Markers?- Mapbox

I am styling a minimal world map (no country names, maximum zoom level 3) with markers representing Universities. The problem is that some of the universities are in the same town as others, so ...
0
votes
0answers
57 views

In OpenLayers, WMS layers get dislocated on window resize

In a low zoom level, like 3 (my max extent), my WMS layers are dislocated relatively to the rest of the map. I think this happens because on the left side of my page, I have a menu that I can ...
0
votes
0answers
29 views

Esri API Web-Map and horizontal footer Scroller on Mousewheel

I am designing a webpage whereby the footer section of the page is to scroll horizontally, using the mouse wheel. There seems to be a conflict between the Esri library and the JQuery script I found ...
0
votes
0answers
48 views

How to draw internal layouts on Google maps

How to draw internal layouts on Google maps can any on tell me how to do this any idea?
0
votes
0answers
233 views

Trouble Using jQuery UI Range Slider with Cartodb

I am trying to use a jQuery UI range slider to create a filter the markers displayed on my map - similar to this post office example. The problem I am having is that on load, sometimes I get the ...
0
votes
0answers
175 views

javascript/jQuery getJSON very slow with a inner loop

asked here too http://stackoverflow.com/q/25024466/528884 I'm using OpenLayers to render DOM for layerswitcher, with about 1200 divs. The problem can be simplified as follows. This is very fast (3 ...
0
votes
0answers
278 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.