The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [jquery]

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.

Filter by
Sorted by
Tagged with
3
votes
2answers
58 views

Make Leaflet polyline bold by hover?

I have a Leaflet map that I show streets and also there is an unordered list of street names in the same page with map. What I want to do is when mouse cursor hovers on a street name in the list, the ...
1
vote
0answers
37 views

Problem with loading big data (GeoJSON) via PHP

I have a problem with loading (big) data via PHP from a spatial database. I let run this project on a localhost Apache Server. From a data count of about 30.000 edges I get an error VM885:1 Uncaught ...
1
vote
3answers
44 views

Replace OpenLayers draw form select options by button

I am trying to replace the openlayers draw features form by button. I have created three buttons for point, line and polygon features draw. When clicking the first button (value = point) it works fine ...
1
vote
0answers
26 views

Why TreeView Kendo is not executed properly?

I made a tree view kendo to enable the user to turn off or turn on the two layers "osmlayer" and "bing_road". but the treeview is just shown and does not work. first of all chrome debugger showed that ...
3
votes
0answers
48 views

Displaying QGIS's “Map Tips” in OpenLayers?

Still a little new to QGIS and Openlayers. How would you display QGIS's "Map Tips" into OpenLayers? I am currently using QGIS 2.18 and have the latest update in Openlayers. In QGIS, I have created a ...
2
votes
1answer
188 views

Adding feature property values to filter drop down option in Leaflet, instead of keys?

How would I convert this function to store and utilize (feature.property.id) json values instead of keys in the dropdown menu within a leaflet map? <html> <head> <meta ...
1
vote
1answer
64 views

Use self-defined Leaflet identifiers to work with jsTree checkboxes

I have some hierachic structured point-layers in a GeoJSON file using jsTree (ajax) with checkboxes to add them to the map. As I have about 20.000 points structured in 2.000 nodes representing the ...
1
vote
1answer
67 views

Styling OpenLayers 5 Vector dynamically

I have a checkbox button, and I am trying to change the variable getStyle dynamically, when jQuery change event is triggered. Though style property doesn't get updated when the event is triggered. ...
0
votes
0answers
52 views

Leaflet display PHP data on GeoJSON popups

I want to display data from my database which I get in JSON format with getJSON function. I want to display these data on all GeoJSON features based on a condition. I am trying to do that with the ...
1
vote
3answers
120 views

Update base layer on toggle button change in OpenLayers

I have an html toggle button and try to toggle update between two layers (baselayer and earthlayer) when it's changed. I am assigning a variable and change the value to the corresponding layer. ...
0
votes
1answer
69 views

OpenLayers 4.6.5 - jQuery : map disappears after hide() show() event

This is a little example of what I'm trying to do : https://codepen.io/remifroger/pen/ZZWgbM I would like to build a tabs design, with one map in each tab. I use jQuery to deal with it but I have a ...
0
votes
0answers
47 views

Arc GIS Javascript 4.1 Autocomplete search widget

I am trying now to use autocomplete widget, i fond code written for API version 3.1, i use 4.1; I changed connection links and other things that might need to change. now i have response of attributes,...
0
votes
0answers
75 views

Add dynamic URL to Leaflet iconUrl

I need to custom icon for my app . One icon for a group of markers. I add a URL for each icone and I don't know how to add it dynamically to my iconUrl. It to change for each select. Here is my code :...
0
votes
2answers
164 views

OpenLayers adding/removing layer when checkbox is changed

I am trying to add and remove layers2 layer when checkbox is changed. How can I do it with jquery? Following my way i get: Uncaught ReferenceError: layers is not defined var wmsLayer2 = new ...
1
vote
1answer
237 views

Load data from URL to update Billboard position Cesium

I am trying to update the position of a billboard every second in Cesium. The issue is I cannot pass the updating points to the billboard coordinates. I am using jQuery to load the data. This is what ...
0
votes
3answers
1k views

Filtering interactive leaflet-map with dropdown-menu?

I try to set up a filterable "shot chart" like http://graphics.latimes.com/kobe-every-shot-ever/ with leaflet. I've a geojson file thats stores all the shots data, I've them showing up in a layer. ...
0
votes
2answers
898 views

Get GeoJSON from a database by the AJAX method for OpenLayers

I have this code: if (ol.proj.proj4 && ol.proj.proj4.register) { ol.proj.proj4.register(proj4); } var features = new ol.format.GeoJSON().readFeatures( $.ajax({...
0
votes
1answer
423 views

turf.js point never found inside or within GeoJSON features loop

I have a GeoJSON http://radikal.com.mx/distrito.json and all I am trying to do is find if a turf point that has a longitude and latitude is inside or within that GeoJSON. No matter what point I use I ...
0
votes
1answer
169 views

Leaflet map with jQuery autocomplete: fitBounds (click input) on selection?

I'm trying to fire a click event on my search button and/or the input field as soon as a user selects something from the jQuery autocomplete <li>: https://jsfiddle.net/grh2dLyw/1/ I'm not sure ...
1
vote
1answer
364 views

Showing all features by real-time API with Leaflet Map

I want to show all URL parameters or features onto a map. I have made the variable with ajax query as well as inside the loop data is printing with variable but I want to show this data with map into ...
0
votes
1answer
222 views

Difficulty rendering a multipolygon from a GeoJSON using JQuery

I'm pulling polygon data (neighborhood boundaries in San Francisco) from an API on https://data.sfgov.org/Geographic-Locations-and-Boundaries/SF-Find-Neighborhoods/pty2-tcw4/data. While I made sure on ...
2
votes
2answers
378 views

Joining CSV to KML/GeoJSON in Leaflet webmap and showing joined data in popups?

I'm trying to create a Leaflet/Mapbox webmap with line layer (GeoJSON or KML) with some IDs and data coming from the .csv (after joining through this ID) file located on the same path as the index....
0
votes
1answer
442 views

input data coordinates to database from input data inside leaflet js

i have a problem with my update data coordinates form leaflet popup. i just want to make edit form inside leaflet popup. if i click marker in a map it shown coordinate with input form, if the building ...
1
vote
0answers
723 views

Response not working in AJAX/PHP

I am working on Google Maps API, where I have made a dynamic marker popup. Now I want to take the user information from the popup and save it to my MySQL database without reloading the page. So I am ...
1
vote
2answers
5k views

Filter GeoJSON by attribute in Leaflet using a button

I have a GeoJSON point layer group styled as a circle marker; it has a color attribute which can be one of many values: white, black, blue, red etc. I want to create a filter based on that attribute, ...
0
votes
2answers
3k views

Mapbox + JavaScript (Remove layer)

The attached script was created for the geojson file I created that works properly. <script> $(document).ready(function() { $(pz).click(function() { L.mapbox.featureLayer('...
1
vote
2answers
311 views

How to reference jQuery in Javascript API 3.23

I'd like to hookup jQuery in my application to use along side with Dojo just to be able to use animations and a few other styling type of things on my map layout, but am unsure of what the best ...
1
vote
0answers
152 views

Getting coordinates falling inside two known points using javascript

I'm working on a solution, where a parent track the vehicle in which his kids are travelling. Initially I will be getting all the geo fence data from the system (Like stopings) and store it in an ...
0
votes
1answer
746 views

Reference to layergroup object in Leaflet?

I want to build my custom layers control with JQuery. My JS is like: $(document).ready(function() { var map = L.map('map', { center: [39.73, -104.99], ...
0
votes
1answer
446 views

Get value from an input select with getBounds

I have an input select (or select box, whatever), with some values, examples: 72, 73, 74... Where each value is an area on a map. I need that value for each option selected, so as to zoom in on the ...
1
vote
0answers
376 views

Create button to cycle through different markers in a GeoJSON file on click

I am trying to create an interactive Leaflet map of a hiking trail. Along this trail, I have a number of 'waypoints', represented as markers in a GeoJSON file: var waypoints = [ { "Name": "Cabane ...
0
votes
1answer
258 views

Access ArcGIS Server Rest Service with jQuery

I am trying to use jQuery to access an ArcGIS Server rest service. I keep getting: Request header field X-Requested-With is not allowed by Access-Control-Allow-Headers in preflight response ESRI ...
1
vote
1answer
394 views

Change path to folder storing icons for Leaflet Layer

I have a Leaflet point layer that uses icons. I have a different folder for individual time steps, and I would like to use a jquery ui slider to change between them. Changing the slider should ...
1
vote
0answers
5k views

How I do rotate a map using Leaflet?

How rotate map using the leaflet? I was trying here, but nothing worked. I followed this tutorial, even though it was from the mapbox, I assumed it was useful: https://www.mapbox.com/mapbox-gl-js/...
1
vote
0answers
160 views

Center the map for printing [closed]

How to solve the problem I show in both images. I have a centered map where I want, when I click to print I would like it to print almost from the screen and reproduce the same position in the print. ...
1
vote
1answer
488 views

Zoom after search using autocomplete [closed]

How to do after a search, zoom in on the value found on the map? My code is: $("#txtSearch").autocomplete({ source: setoresComerciais.features.map(function(d){ return d.properties....
0
votes
1answer
489 views

Leaflet GeoJSON with Jquery UI autocomplete

How do a autocomplete when I search for something? I have this: <form> <div class="col-sm-11"> <input type="text" name="busca" id="txtSearch" class="form-control" ...
1
vote
1answer
2k views

Switching leaflet image overlay layers shows white blinks

I am switching between image overlay layers upon user entry (through a slider). Every time users get into this loop, a fast blink (with white background) is displaying, meaning that the old layer is ...
1
vote
1answer
1k views

Dynamically create leaflet popup via JavaScript Object

I want to dynamically populate a marker popup via a JavaScript object. I have a JavaScript object like so: {address: "92101 S Martin Ave.", address2: "", agent_name: "mr smith", animal: "sheep", ...
2
votes
0answers
262 views

dynamic zoom linked to a drop-down menu

I would like to get a dynamic zoom linked to a drop-down menu. For example I have a list connected to my database with all the regions and I would like that when the user choose a region that a zoom ...
1
vote
0answers
693 views

ajax $.post not working in bootstrap framework application using leaflet 1.20

I have a web application using Bootstrap and leaflet. My jquery ajax call does not work. <!-- jQuery --> <script src="js/jquery.js"></script> <link rel="stylesheet" href="...
-1
votes
1answer
268 views

how cartodb.createLayer function works

i am using cartodb.createLayer() function to prepare my web application. I have tried to pass vizjson url and metadata method both to get my layers from my carto account which has total of 8 layers in ...
0
votes
1answer
3k views

How to convert JavaScript array into geoJSON data?

I want to upload txt, xls and csv files into leaflet. Firstly I am trying it for txt files. Js reads my txt as a js array. Now that I want to convert my js array into geoJSON. But I am confused here. ...
1
vote
0answers
78 views

How to use the points which come from the leaflet file layer plugin?

I am using leaflet file layer plugin.I have added a kml file which includes some points. I want to do sth by using these points. But I don't know if the plugin saves this data or not. How can I use ...
2
votes
1answer
339 views

Leaflet popup not pointed to marker when collapse

In my application I am using leaflet popup to display more details regarding the marker (Vehicle). User should be able to collapse and expand the popup. Fist user click on the marker it will display ...
3
votes
2answers
661 views

Zoom on Linestring object in Leaflet

I'm using Leaflet and trying zooming on a LineString object from a geojson file. Here is an extract of my file (with a lot of LineString objects): { "type": "FeatureCollection", "features": [ ...
0
votes
1answer
951 views

OpenLayers 4 set map target with jQuery

I have a div element <div id="map" class="map"></div> And I have a map var map = new ol.Map({ layers: [map_layer], target: 'map', view: Map_1_view }); I try this to set ...
1
vote
0answers
200 views

how can I bind layers from database or add new layer(s) to existing layer?

First of all, I have to say that I'm new to the OpenLayers. I was used OpenLayers 4 in this project. We have a map with group layers that can visible or invisible any of them. var map = new ol.Map({ ...
3
votes
2answers
677 views

How to extract GeoJSON vector layer coordinates from DOM, Openlayers 3

I created a GeoJSON vector layer using OpenLayers 3 API, the vector layer is a county map. My goal is by clicking, I will be able to select the county and extract the coordinates. (like shown below) ...
2
votes
0answers
556 views

Multiple tables from PostGIS to Leaflet with PHP and jQuery

I recently found this example: https://northlandia.wordpress.com/2015/04/20/connecting-postgis-to-leaflet-using-php/comment-page-1/#comment-627 It is very helpful and it works fine for one PostGIS ...