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
1answer
25 views
1
vote
1answer
27 views

Leaflet display only clicked element of a loaded map layer (polyline)

I am creating a web mapping application that will return appropriate routes based upon ST_length query on a cartoDB dataset. So far, the code below successfully maps those routes with individual ...
0
votes
0answers
9 views

Want map layer colors to change with button clicks… One of them isn't working correctly!

I have three buttons that show different queries on a data set. I want them each to also display in a different color. When the map loads, I have the default layer in blue. However, After clicking the ...
0
votes
1answer
26 views

Accessing HTML using jQuery within LeafletJS popup.

So I want to add some HTML code to a Leaflet popup, but I also want to be able to to perform some jQuery functions when this HTML is clicked, like so: .bindPopup( "<button id='clickHere'> ...
0
votes
0answers
12 views

Getting PNG map from PostGIS to Node and then jquery

Using Jquery, I am aiming to get png map from postGIS which has been created dynamically from node server in different port. I used jsonp to overcome cross domain issue in jquery. $.ajax( ...
0
votes
0answers
30 views

Is it possible to select and highlight a polygon that contains points in one cluster in openlayers 3

my question is I need to select one cluster for that cluster there will some points. Right now I am able to select points in one cluster selected from the drop down. i have added markers to it. now ...
1
vote
1answer
41 views

Sortable list of layers

I want to create a sortable lists of layers using jquery ui. I'm trying to use .setZindex() and .index() method. I think that index of <li> does not refresh after order changing. I'm not ...
0
votes
1answer
46 views

How to store a vector layer as a geojson file in openlayers 3?

So I have some vector layers that I import from geojson files and run some search on them, I want to display only the results of the search as a vector layer. I am using a jquery form to search, and ...
1
vote
0answers
39 views

How to load JQueryUI into Web AppBuilder?

There is an example widget using JQuery in {WAB root}/client/stemapp/widgets/samplewidgets/UseJQuery and the code can be easily adapted for other versions of JQuery. However, I want to use JQueryUI as ...
1
vote
1answer
40 views

Leaflet : load & remove layer at specified interval time

I want to load and remove a layer in a specified interval of time. I make it blink with a random color function associate to my layer style. I can load this layer multiple times, unload it in a ...
0
votes
0answers
45 views

Moving to CartoDB from Fusion Tables - User interaction with Map and Table data

I currently use fusion tables with great results. I am now looking for advice as I am contemplating moving to CartoDB. I have a need for users to be able to interact with mapped data in a spatial ...
2
votes
1answer
40 views

How can I load GeoJSON from URL to leaflet? [closed]

I want to use leaflet's L.GeoJSON to load the GeoJSON from my URL. I have tested to use leaflet-ajax plugin and it worked. The codes as follow: <link rel="stylesheet" ...
0
votes
0answers
20 views

Adding additional markup to leaflet marker_

I'm trying to customize the html output for my leaflet markers. Specifically, I'm trying to assign them additional data attributes to trigger bootstrap modals based on an ID pulled from the database ...
-1
votes
1answer
120 views

How to plot latitude and longitude stored in database on ArcGIS map

I am new to ArcGIS and I have tried basic things like I created a csv file with latitude,longitude and place as data in it. I imported that file as a layer when I created a web map in ArcGIS. This ...
1
vote
1answer
340 views

Export PDF from OpenLayers map with jsPDF

I try to use javascript library JSPDF for export my OpenLayers map but it doesn't work. I create my HTML : <head> <script type="text/javascript" ...
3
votes
0answers
186 views

GeoJSON not showing in leaflet map?

I'm trying to load a geojson file in to my leaflet map and can't see what's going wrong. From looking at other questions i've used Jquery Ajax to call the geojson. The geojson is in the same directory ...
0
votes
0answers
145 views

Leaflet / JQuery -cannot add or remove class to divIcon marker

(this is related to a previous question of mine) I am adding a divIcon (an svg) as the icon for features in a geoJSON, using Leaflet. I can add a class to the html property of the icon, but I cannot ...
0
votes
1answer
139 views

CartoDB layer not showing up on over mapbox layer but legend is

Currently, the legend is only displaying but not the layer. NOTE: I am trying to run the web map on a bootstrap modal, hence you will see: $('#webmap-modal').on('shown.bs.modal', function() in the ...
-1
votes
1answer
26 views

Set Visibility Openlayers

If the name of my layer in openlayers is "olayer". And if i want to set its visibility to true. Then the simple code is olayer.setVisibility(true); But if i want to set the visibility by ...
1
vote
1answer
583 views

OpenLayers 3 toggle feature visibility

This seemed simple on the face of it, but I am unable to figure out how to toggle the visibility of a marker feature using the Version 3 API of OpenLayers. In my situation, I am adding features to a ...
0
votes
1answer
62 views

How to get attribute of the leaflet marker?

is there a way to get and hold the option attribute of the leaflet marker? marker = L.marker([lat,lng], {draggable:true,icon: L.AwesomeMarkers.icon({icon: '', prefix: 'fa', markerColor: ...
0
votes
1answer
456 views

CartoDB json to HTML Table using Javascript or Jquery

I am trying to display the dataset inside the cartoDB as HTML table. When i give request to the postgre database by SQL API, it is returning as the format (json) below in the snapshot. I want the ...
2
votes
1answer
187 views

Detecting onClick event for clicking Printout button of ArcGIS API for JavaScript?

I am wondering if there is a way to detect when a user clicks the "Printout" link after using the print task in ArcGIS Javascript 3.14. I have set up many custom options in my mapping application ...
0
votes
0answers
56 views

Activate click events on graphics outside of map

Using a JSON feed, I have plotted map points onto a basic map. I've set them up to center and display a popup when clicked. I would also like to activate the centering and popup by clicking on an ...
0
votes
0answers
42 views

How to get the directions of the co-ordinates in leaflet?

Now i'm working on the live tracking to track my vehicle.I want to get the directions to change the marker position based on the co-ordinates. I have using arrow icon for marker icon. I need to ...
0
votes
1answer
188 views

Leaflet : How to update polyline ? Live Tracking

var ColorVar = '#bd0026'; var firstpolyline = new L.Polyline(polyList, { color:ColorVar, weight: 8, opacity:0.8, smoothFactor: 1 } ); ...
1
vote
0answers
24 views

Ajax parameters to arcGIS's find Address

I write a ajax to consume the arcGIS services to return json results, I have tried so many way for the findAddress function parameter, non seems work, plese help. Below is my code: function ...
0
votes
2answers
36 views

tag based filter in OpenLayers

I want to filter an OpenLayers(2) vector layer based on tags. Therefore, the vector layer has a property column which can be filled by comma-seperated tags like e.g. "culture,food,park", but also only ...
1
vote
1answer
41 views

Openlayers 2 Cluster map Convert from WMS to OSM

I have implented a simple open layers map to plot stores on the map ive done this using wms fiddle https://jsfiddle.net/7n42uaux/3/ now i want to use osm maps new OpenLayers.Layer.OSM(); when i ...
2
votes
0answers
101 views

Populate list from arcgis server service in JQUERY javascript aplication instead of DOJO?

I would like to populate a list on a select combobox using jquery 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 esri ...
0
votes
1answer
192 views

Get GeoJson feature by ID and zoom on entity

I have got a leaflet map with Geojson layers : I use jquery Autocomplete to search an entity by name or id, I have no problem with that. I need your help because I'm not able to refer to a specific ...
1
vote
1answer
87 views

Invalid value for <image> attribute x=“NaN”

I'm working a jQuery Mobile page with an ESRI jsapi map and a dialog which calls on a geocoding service to return an x/y which I plunk a graphic on the map and then center up on. This site runs very ...
0
votes
0answers
24 views

ESRI story map and Jquery-ui dialog function not collaborating

I am trying to edit an ESRI story map (just the html) so that I can integrate a jquery-ui dialog box in the webmap. I have the correct links in the head, and the correct javascript piece, but for some ...
0
votes
0answers
39 views

jquery + openlayers 3

I am trying to put a map in a jquery tab. The end goal is to use it in a web app. I can get it working, but as soon as the map code goes into the app, the map disappears. I am trying to figure out ...
0
votes
0answers
232 views

Click event on anchor tag does not update Leaflet map as expected

I'm having problems updating a Leaflet map from a click event on an anchor tag located within a Leaflet Control on the map. Chrome and Firefox on Mac seem to have identical problems, Safari is ...
0
votes
1answer
43 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 ...
3
votes
2answers
3k 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 & ...
2
votes
1answer
845 views

How to animate Markercluster Icons

I am using Jquery Google Map V3 with markerclusterplus. I want to animate a cluster icon when hover the icon. My Clusterhover event code is, var mc = new MarkerClusterer(map, markersarray,mcOptions); ...
0
votes
1answer
87 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
1answer
82 views

zoomin and zoomout in google maps

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 the ...
0
votes
1answer
120 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
0answers
193 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
166 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
68 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
122 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 ...
1
vote
1answer
130 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 ...
0
votes
0answers
230 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
363 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
188 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
2k 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: ...