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

0
votes
0answers
18 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
22 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
35 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 ...
1
vote
0answers
52 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 ...
0
votes
1answer
82 views

How to set an ol.style.text using a source in OpenLayer?

I have the following code: var cbcWFS = new ol.source.GeoJSON({ projection: 'EPSG:3857', url: ...
0
votes
0answers
45 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
2answers
58 views

Having trouble with the getFeaturesAtCoordinat() method in OpenLayer

Why reason when I do click in a polygon, It works and not in a point? I have the following jQuery Code: var despachosFeatures = despachosWFS.getFeaturesAtCoordinate(evt.coordinate); var ...
1
vote
0answers
29 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
37 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 ...
0
votes
1answer
187 views

How can I add markers and attributes contained in JSON data to an OpenLayers 3 vector layer?

My question is similar to a previous question I asked (How can I add attributes contained in JSON data to an OpenLayers popup?). However, since I originally asked this question, I have upgraded to ...
0
votes
3answers
108 views

Leaflet is behaving unexpectedly when trying to load more than one layer

I had a hard time trying to create a good title for my issue since it is a little hard to explain. But I will do my best. Basically what I'm trying to create a web map to show three distinct layers, ...
1
vote
1answer
86 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
0answers
31 views

JavaScript _.each function not showing correctly [closed]

Can't seem to get this to display the correct way. The correct way would be Day/open/hours. geojson displayed below: hours: { monday: { close: "18:00:00", open: "10:00:00", call: ...
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

How to use openlayers 3 and Mapserver (WMS

I'm not able to centralize my map in OpenLayers / MapServer , it appears at the top . The " center " do not work . Below my code to better analyze . I did not post the mapfile why I did an experiment ...
0
votes
0answers
39 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
38 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
1answer
83 views

Is there a way to make google charts repond to extent of map in CartoDB?

I have figure out how to make a google chart responsive to a click event (view sample code here) and also responsive in an infowindow (view sample code here) but is there a way to make it respond ...
0
votes
2answers
120 views

Json not loading from Geoserver into Leaflet

I'm creating an web map application using Geoserver and Leaflet. I'm trying to load a few Json feature through an WFS service.The problem is that nothing is being displayed on the final map, the ...
1
vote
0answers
185 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, ...
2
votes
1answer
253 views

Hide/Show route layer in Leaflet when click on button (Easy Button plugin)

I have a Leaflet map with button (Easy Button plugin https://github.com/CliffCloud/Leaflet.EasyButton). When click on button on map added route layer (plugin ...
2
votes
1answer
188 views

Display problem while using openlayers with jquery

I want to use jquery with openlayers for rich interface. I have used layout-master for simple layout. But the problem is, when I add simple map using openlayers 'map' will not display at the center.! ...
0
votes
1answer
101 views

Leaflet controls are not appearing with Promise function

I am not receiving any errors in the console either. I am attempting to use the Promise function instead of callback. var map; var centerlatlng = L.latLng(38, -98); var aDiv; var geojsonfeatures; ...
3
votes
2answers
214 views

ArcGIS Javascript API on Wordpress 4.1

SOLUTION: For everyone interested: turned out the solution was moving all files that use DoJo beneath the jQuery UI files, so that jQuery UI is fully loaded before any DoJo stuff loads. Moved them all ...
1
vote
0answers
154 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
1answer
236 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
2answers
81 views

Openlayers 3: Drag -draw bbox with form

Is it possible to drag/draw a bbox in Openlayers 3 and have the coordinates from this function auto fill-in a form field(s) on the same page?
2
votes
0answers
56 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: ...
0
votes
0answers
49 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 ...
1
vote
2answers
382 views

Openlayers 3 spyglass example (advanced functionality)

I would like to use openlayers 3 spyglass example inside my project. The problem is when I want to use selection for layer, which will be inside spyglass circle. I can't get it working, I don't know ...
0
votes
0answers
28 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 ...
1
vote
1answer
212 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 ...
0
votes
0answers
35 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
1answer
100 views

OpenLayers - Click on a panel triggers a map click but it should not

I added a panel to a map that is contained inside an IFrame. Then I attach a click handler to the div of this panel with JQuery to toggle a control. However, I notice that a click on the panel also ...
1
vote
1answer
922 views

How to open overlay content from leaflet popup

Hi! I am currently working on an interactive leaflet map. I managed to display markers from a database via php (create an array). Now I want users to create markers with a click on the map. To add a ...
1
vote
1answer
170 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 ...
2
votes
1answer
360 views

Leaflet - how do you get individual markers from a featurelayer?

In Leaflet, if I have a feature layer filled with markers, how do I get these markers back from the layer? I want to apply different popups to each individual marker, instead of the entire set. I ...
1
vote
0answers
134 views

Get info from WMS layer with Openlayers mobile jquery? [closed]

How to get feature info from WMS layer (geoserver)? I am using openlayer jQuery mobile. I've already called the WMS in jQuery mobile, but how to get feature information when clicking the attribute.
0
votes
1answer
433 views

Add Jquery UI Dialog Box to OpenLayers 3 overlay

Hi I'm trying to create a custom popup overlay using Openlayers 3 and Jquery UI dialog boxes. (I want use the dialog box as a popup window). I'm a bit stuck though as my Jquery coding isn't good. I ...
1
vote
1answer
181 views

How to update leaflet L.imageOverlay using jquery serialize without page refresh?

I am developing an application that fetches and displays raster/image maps (png, tif), into a leaflet map. However, I didn't like the page and the map refresh upon form submission. In addition, I ...
0
votes
0answers
129 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
0answers
206 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 ...
1
vote
1answer
179 views

Determine size of screen/map to limit number of markers displayed

I am writing a JQuery Openlayers javascript web application that connects to a API, which exposes a million geo located points plus metrics and information about the points. One metric is a points ...
1
vote
0answers
114 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
1answer
96 views

Can 3rd party javascript libraries be used with CartoDB?

I'd like to build some functionality (search, sliders, etc.) in a 3rd party javascript library (jquery mobile), and integrate it with CartoDB. Can this be done? Are there any examples available or ...
0
votes
0answers
149 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
66 views

geojson object with different representations and label/popoup conten

I have a quite complex geojson in terms of vertexes. It holds all the information which is needed in the webmap. it serves as the input for many layers like this (example for two): var represenation1 ...
0
votes
1answer
32 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 ...
1
vote
1answer
53 views

How do I cycle through the available Overlays and Base Layers using OpenLayers

I would like to have my map cycle through the display of loaded overlays and base layers using Javascript or jQuery. I would like to do this with a delay of 5 seconds between cycling. Does anyone ...
0
votes
1answer
213 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 ...