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
1answer
41 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 ...
0
votes
0answers
38 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 ...
4
votes
1answer
95 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 =...
1
vote
0answers
33 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 ...
0
votes
0answers
67 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"><...
1
vote
0answers
105 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 ...
-1
votes
1answer
61 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 ...
1
vote
1answer
992 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 ...
1
vote
0answers
200 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 ...
0
votes
1answer
308 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 ...
0
votes
0answers
383 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://...
0
votes
1answer
235 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 ...
1
vote
0answers
293 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 ...
2
votes
2answers
470 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 ...
3
votes
2answers
1k 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
181 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
124 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
74 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
178 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
1k 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 ...
2
votes
1answer
267 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
977 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
367 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
982 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. ...
1
vote
1answer
305 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
425 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
898 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
983 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 ...
1
vote
3answers
6k 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
3k 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
895 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
604 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
951 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
371 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
835 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
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 ...
1
vote
0answers
944 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 ...
4
votes
2answers
13k 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
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('...
1
vote
2answers
578 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
237 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
1k 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
685 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
431 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
415 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
759 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
1answer
8k 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
231 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
794 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
674 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
2 3 4 5