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
1 vote
0 answers
144 views

Add functionality to Leaflet Map (Search, Add on Client Select) [closed]

I've tried so many ways to do it but is there a way to do this or not? I would like to have it so that the user can search on the page (doesn't have to be a control in Leaflet) for a building with ...
mmaguigan's user avatar
1 vote
1 answer
197 views

Show totalDistance from L.Routing.control at every route change?

I need to insert the calculation of the distance of my route in the input to show the user. I need this to happen when the page loads and when the user adds or removes a bookmark. I tried in different ...
Douglas F's user avatar
2 votes
1 answer
3k views

Attach click function to the button inside a popup in Leaflet?

I'm trying to create a button inside a popup which will draw a line on the map when clicked. Line coordinates must be based on the properties of the point layer. I saw some ansewrs on stack and it ...
Maryla's user avatar
  • 148
1 vote
1 answer
77 views

Leaflet symbology using jQuery with a static api response

I'm symbolizing a road network by getting a response from a static api. I have a GeoJSON loaded on the frontend that contains XDSegID as the primary key. I'm sending an AJAX request which returns ...
RMT's user avatar
  • 39
0 votes
1 answer
1k views

Add/remove radius circle after fitting map to radius with Mapbox

I am trying to add a range slider to zoom in and out of a Mapbox map to a radius in miles. I have the map and the slider working and I can sort of zoom in and out of the map by getting the bounds of ...
JulesUK's user avatar
  • 113
1 vote
1 answer
963 views

Uncaught Error: Unsupported GeoJSON type: undefined - Openlayers

I get a valid geojson from the database using a query. Below one is the php script used to read the data. <?php include "../includes/init.php"; // including data base connection $sql = &...
Hashan hemachandra's user avatar
1 vote
0 answers
243 views

Integration of StreetView with QGIS2web openlayers map failed

After attaching the street view to my map I have most of options gone. Predominantly I see the error: TypeError: S.hasRenderer is not a function My full code is here: https://mktest.opx.pl/ If I ...
Geographos's user avatar
  • 4,005
0 votes
0 answers
43 views

Resolve CORS policy error while fetching layer name from GeoServer using AJAX [duplicate]

I want to fetch all the layer names from GeoServer using AJAX and append the data in the HTML dropdown. I used xampp server and file in .php extension, Here is my code : HTML code : <label for=&...
Taranpreet Singh's user avatar
0 votes
1 answer
366 views

Leaflet displaying a single GeoJSON layer even though multiple are supplied

I have a simple Leaflet map and I am trying to display multiple point layers. I know this question has been asked quite a few times and I have tried every single solution but didn't work. I get valid ...
akudekar's user avatar
0 votes
0 answers
352 views

Customizing Layer Display in Map based on Nested Criteria selection with dropdown field outside the Map

I have about 5 different polygon map layers on a map. Each map layer data is stored as separate JSON file (Eg: continent1.json, continent2.json, ...... continent5.json). Every layer have its own ...
Mahesh A R's user avatar
4 votes
1 answer
320 views

Fetching GPS point data from a REST service endpoint using jQuery/AJAX and displaying them as tracks on an OpenLayers map

How do I structure this ajax call to receive GPS point data from a REST service point and display the points as tracks on an OpenLayers map. So far I have the following code; dataProvider.requestJSON =...
kudah's user avatar
  • 53
1 vote
0 answers
239 views

Google Reverse Geocoding API doesn't work on mobile internet

I was able to get Google Geolocations and Geocoder API to work via desktop and on my phone when its connected to wifi, but when I disconnect from the wifi, geocoder doesn't display the results. just ...
jgax87's user avatar
  • 111
0 votes
0 answers
394 views

Dropdown list and map.fitBounds in Leaflet

In my Lealfet application I have a dropdown list which uses data from a GeoJSON to directly populate the list. HTML <div class="form-group"> <label for="inputCS"><...
Ludovico Frate's user avatar
1 vote
0 answers
158 views

GeoServer v2.18.0 Upgrade Web UI version of JQuery [closed]

I am looking into how I would update the version of JQuery used in the Web UI part of GeoServer (v2.18.0). The current version (JQuery v1.12.4) has 4 medium vulnerabilities, so I am looking to replace ...
MeAkaJon's user avatar
-1 votes
1 answer
178 views

Bind selected (Algolia suggested) with queried wordpress search terms from db (ajax, json etc)

Since the Wordpress plugin that facilitates this functionality has been deprecated i have decided to leverage the places API https://community.algolia.com/places/examples.html#searching-in-a-country ...
john zuh's user avatar
1 vote
1 answer
2k views

Leaflet map with D3.js dynamic graph from geojson data

I build a Leaflet map and display data from a GeoJSON. I add a Leaflet-Sidebar to my map, and embed the info control inside this sidebar. When a user hovering polygons on the map, raw values are ...
GeoGyro's user avatar
  • 1,576
1 vote
0 answers
1k views

I want the circleMarkers to be top of the polygons, currently they are not clickable after the polygon added to map

I have used dynamic variables to store reference of the layers to make them off and on with html checkboxes in the menu bar. I have used create pane to order the panes stack but that didn't worked. I ...
Umer's user avatar
  • 23
1 vote
1 answer
2k views

Leaflet Map Clustering zoom in not working on close points

The Cluster don't get zoom in, it just split like this if the points are close to each other , in other clusters if the points are not closer they just get zoom and working fine, I want to disable ...
Umer's user avatar
  • 23
0 votes
0 answers
978 views

Load GeoJSON files as a JavaScript variable. Using Require.js

Trying to load a taluka.geojson With reference to this post here [this guys post with require][1] I am sure my GeoJSON file works [Here is a sample][2] Here is my code: <script src="https://...
wick3d's user avatar
  • 101
0 votes
1 answer
518 views

How to replace http for https before DOM Construct on load KMZ file with ArcGIS API JS

I have an application and it is loaded with https, this application loads a map with a KMZ file, and the content of that file has external reference to a PNG image that is loaded with http. This ...
krekto's user avatar
  • 123
1 vote
0 answers
561 views

Leaflet circleMarker's not working - but marker works fine

Using Leaflet, I'm adding around 15,000 circleMarker's to a geoJson layer. The circleMarker's, however, are not showing on my map when the layer is added, despite specifying the relevant styling ...
Laurie's user avatar
  • 111
2 votes
2 answers
2k views

Looping through an array to show multiple points on the map [closed]

I am trying to add multiple points on the map. Data comes from the server as a multi array. JSFiddle. Notice that all points share the same name (when clicking on the point) This is the response ...
Andd's user avatar
  • 267
3 votes
2 answers
3k 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 ...
Gulsah's user avatar
  • 33
1 vote
0 answers
306 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 ...
David_Kamm's user avatar
1 vote
3 answers
353 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 ...
Kamalh27's user avatar
1 vote
0 answers
223 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 ...
MerajS's user avatar
  • 151
3 votes
0 answers
357 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 ...
NicholasCAMAvision's user avatar
2 votes
1 answer
2k 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 ...
bikingman's user avatar
  • 307
2 votes
1 answer
461 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 ...
McOS's user avatar
  • 21
1 vote
1 answer
2k 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. ...
csandreas1's user avatar
0 votes
0 answers
656 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 ...
Sirick's user avatar
  • 11
1 vote
3 answers
2k 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. ...
csandreas1's user avatar
1 vote
1 answer
624 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 ...
RemiF's user avatar
  • 13
0 votes
0 answers
755 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 :...
KaCreation's user avatar
0 votes
2 answers
2k 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 ...
csandreas1's user avatar
1 vote
1 answer
2k 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 ...
Owen's user avatar
  • 63
1 vote
3 answers
9k 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. ...
bvboisseree's user avatar
0 votes
2 answers
5k 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( ...
CoderCoder42's user avatar
0 votes
1 answer
2k 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 ...
Francisco Astorga's user avatar
0 votes
1 answer
855 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 ...
trashjazz's user avatar
1 vote
2 answers
1k 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 ...
Diksha Bandil's user avatar
0 votes
1 answer
505 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 ...
HP-Nunes's user avatar
2 votes
2 answers
1k 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....
Jakub O's user avatar
  • 83
1 vote
0 answers
1k 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 ...
Avik Betal's user avatar
8 votes
2 answers
18k 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, ...
Cezar B's user avatar
  • 1,466
0 votes
2 answers
9k 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('...
Balázs Nemes's user avatar
1 vote
2 answers
720 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 ...
MKF's user avatar
  • 561
1 vote
0 answers
449 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 ...
hariharangec's user avatar
0 votes
1 answer
2k 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], ...
alextc's user avatar
  • 2,013
0 votes
1 answer
936 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 ...
Elton Santos's user avatar

1
2 3 4 5