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
0 votes
1 answer
166 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 ...
user avatar
  • 13
1 vote
1 answer
163 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 = &...
user avatar
1 vote
0 answers
86 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 ...
user avatar
  • 3,546
0 votes
0 answers
41 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=&...
user avatar
0 votes
1 answer
126 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 ...
user avatar
0 votes
0 answers
101 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 ...
user avatar
4 votes
1 answer
169 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 =...
user avatar
  • 53
1 vote
0 answers
108 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 ...
user avatar
  • 111
0 votes
0 answers
185 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"><...
user avatar
1 vote
0 answers
135 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 ...
user avatar
-1 votes
1 answer
87 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 ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
  • 1,305
1 vote
0 answers
406 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 ...
user avatar
  • 23
1 vote
1 answer
614 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 ...
user avatar
  • 23
0 votes
0 answers
529 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://...
user avatar
0 votes
1 answer
309 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 ...
user avatar
  • 123
1 vote
0 answers
363 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 ...
user avatar
  • 111
2 votes
2 answers
969 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 ...
user avatar
  • 247
3 votes
2 answers
2k 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 ...
user avatar
  • 33
1 vote
0 answers
206 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 ...
user avatar
1 vote
3 answers
155 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 ...
user avatar
1 vote
0 answers
95 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 ...
user avatar
  • 151
3 votes
0 answers
227 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 ...
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 ...
user avatar
  • 325
2 votes
1 answer
325 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 ...
user avatar
  • 21
1 vote
1 answer
1k 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. ...
user avatar
0 votes
0 answers
492 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 ...
user avatar
  • 11
1 vote
3 answers
1k 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. ...
user avatar
1 vote
1 answer
417 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 ...
user avatar
  • 13
0 votes
0 answers
519 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 :...
user avatar
0 votes
2 answers
1k 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 ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
  • 63
1 vote
3 answers
7k 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. ...
user avatar
0 votes
2 answers
4k 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( ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
0 votes
1 answer
672 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 ...
user avatar
1 vote
1 answer
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 ...
user avatar
0 votes
1 answer
403 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 ...
user avatar
2 votes
2 answers
942 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....
user avatar
  • 83
0 votes
1 answer
1k 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 ...
user avatar
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 ...
user avatar
6 votes
2 answers
15k 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, ...
user avatar
  • 1,446
0 votes
2 answers
8k 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('...
user avatar
1 vote
2 answers
637 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 ...
user avatar
  • 487
1 vote
0 answers
278 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 ...
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], ...
user avatar
  • 1,993
0 votes
1 answer
782 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 ...
user avatar
1 vote
0 answers
462 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 ...
user avatar
0 votes
1 answer
444 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 ...
user avatar
  • 585
1 vote
1 answer
849 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 ...
user avatar
  • 3,246

1
2 3 4 5