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
27 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
1answer
465 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
1k views

OpenLayers map add combo in panel

I just want to add combo box on OpenLayers map panel. I don't know how to add combo to the OpenLayers panel so currently I have set absolute location to combobox, like this http://jsfiddle.net/4zNH6/ ...
1
vote
1answer
291 views

Display custom fields/content in popup for existing ArcGIS Map API Service

I'm using the ArcGIS Map API "Historic_National_Boundaries_NEW (FeatureServer) > Year_2000" present over here : API Link It has two pre-defined fields 'OBJECTID' and 'NAME_2' (for each country) ...
1
vote
0answers
76 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
126 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 ...
1
vote
1answer
20k views

Waiting on AJAX result in main JS function

So .... my main init()Javascript function has these 3 lines: sarea = GetArea(Uname,UIDfield,Table, document.getElementById("Source").value); darea = GetArea(Uname,UIDfield,Table, document....
0
votes
1answer
617 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 ...
0
votes
1answer
2k 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: But I want to show the value on the heat map like this crime page (with two options on: "Crime ...
1
vote
1answer
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
1answer
111 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
3answers
2k 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. ...
2
votes
2answers
458 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....
3
votes
2answers
169 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
55 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
50 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
1answer
1k views

OpenLayers + GeoServer's WMS — Passing Feature ID into a Variable

I have a WMS PostGIS-based polygon layer served by GeoServer, and whenever I click on any feature I want to get its gid value, so I can pass this value to the DOM. Unfortunately, I could not find a ...
1
vote
0answers
35 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
84 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
4k views

Adding multiple OpenLayers Vector Layer markers to map using AJAX, JSON, and jQuery?

I am attempting to parse a JSON file and place markers on an OpenLayers based map application. I am using jQuery to perform the AJAX and iteration on the JSON file. I am having a problem with the ...
2
votes
1answer
635 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
105 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
90 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 ...
0
votes
1answer
117 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 ...
1
vote
3answers
262 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
0answers
73 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
150 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
273 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
417 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
2answers
1k 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({...
30
votes
3answers
40k views

Adding/Removing Leaflet GeoJSON layers

I'm trying to show different GeoJSON layers at different zoom layers using the Leaflet API. I can load and display all three layers at once (though I don't actually want them all to show at once). I ...
0
votes
1answer
246 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 ...
0
votes
1answer
513 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 ...
2
votes
1answer
3k views

Reading through GeoJSON using Turf.js?

I have a simple app that takes a coordinate and determines what GeoJSON polygons it falls inside, then I take the polygon data and put it into a table. I have working code that uses turfjs and ...
0
votes
1answer
206 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 ...
0
votes
2answers
4k 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('...
0
votes
1answer
50 views

Inserting full bleed images in browser background instead of maps using CartoDB?

I am building a product that will utilize high fidelity photography. I would like to show my photos in a slideshow format that takes up the entire area of the browser. CartoDB and the Odysssey.js ...
1
vote
0answers
770 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 ...
2
votes
1answer
393 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 ...
1
vote
1answer
96 views

Creating date picker for CartoDB map?

I am working with data that I need to be able to display by day gathered, and it's gathered over a period of years. I would like the user to be able to select a date from a calendar-type picker, and ...
0
votes
1answer
108 views

only one popup displayed on the openlayers

The issue is that i only one popup on the map is dispalyed. I can see all the points but popup can see only on the last point of the list. Please check my code http://jsfiddle.net/3HSjY/24/ I'm stack ...
2
votes
2answers
7k 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, ...
1
vote
2answers
385 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
3answers
1k views

Leaflet Sidebar - How to get data based on the GeoJSON you clicked?

I am having trouble getting my GeoJSON data to appear on my sidebar when I click on a marker? As right now, I am able to click on a marker and make the sidebar appear, but without any information. ...
2
votes
1answer
255 views

Spatial Query tool for Mapbox

I’ve using Mapbox Studio to create a web map that’ll allow a user to interact with some basic parcel data. I’m looking to add a basic spatial query tool for the user so that they can apply spatial ...
1
vote
1answer
496 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
1answer
383 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 ()...
2
votes
1answer
1k 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
0answers
188 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
2k views

Heatmap.js is not displaying on OpenLayers

I tried to follow the example on the heatmap.js but for some reason it is not displaying the heat map layer, and the layer control is not working. Maybe I am missing something stupid. Can someone ...

1 2 3 4 5