Skip to main content

Questions tagged [ajax]

An acronym for asynchronous JavaScript and XML. It is a group of interrelated web development techniques used on the client-side to create asynchronous web applications.

34 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
392 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
0 answers
1k views

How to update the markers in real-time using ajax

I am facing some problem where the markers is not being updated when the values in the database changes(i am using a stored procedure which get the latest location based on the timestamp). ...
Lee Yue Loong's user avatar
2 votes
0 answers
2k views

No 'Access-Control-Allow-Origin' header is present error when requesting json response from Geoserver

I am still working to get my GeoServer WFS displayed in my Leaflet map and cannot get the Ajax response to work properly. I have already run the "getFeature" request in my browser and it returned json ...
gwydion93's user avatar
  • 1,923
2 votes
0 answers
208 views

Geoserver wfst ajax call

I am writing a feature into postgis behind geoserver using wfst and using jquery ajax call. When the user is authenticated it successfully adds a feature. When user is not authenticated it still ...
user2139428's user avatar
1 vote
0 answers
258 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
1 vote
0 answers
231 views

Prevent results of GetGeometry from disappearing after AJAX call

In my ongoing mission to try to find a way to zoom into a specific area of a map (in this case a DMA), I am first trying to get the coordinates of a selected point that will be accessible to me for ...
user3003374's user avatar
1 vote
0 answers
134 views

ajax don't retrieve fully php request response

I'm facing challenge with ajax response in my code: // ********* PHP code (LoadData.php) **************** <?php include 'Connexion.php'; $requete="SELECT id, pkuid, province, nom, prenom, ...
abbkr1er's user avatar
1 vote
0 answers
390 views

Leaflet custom icons and popups showing GeoJSON properties with external data?

How can both custom icons and geojson properties be implemented with external geojson in Leaflet? Using methods described in answers to two other questions, both using inline geoJSON: Using custom ...
Carpintonto's 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 ...
Avik Betal's user avatar
1 vote
0 answers
872 views

Openlayers, add new ol.layer.Tile after AJAX 'done'

I'm trying to add an additional ol.layer.tile on my existing map view after a 'status' 'done' Ajax post call. I have tried to use "async" and "await" on initialize the ol.map. A sample code is below: ...
MaxG's user avatar
  • 515
1 vote
0 answers
674 views

How to send data parameter on leaflet-ajax

i have a problem about sending data parameter to leaflet ajax, i'm using https://github.com/calvinmetcalf/leaflet-ajax anyone know how to send data parameter ? i have reading documentation but did't ...
Nurul Hidayat's user avatar
1 vote
0 answers
110 views

How to render data from ona.io in leaflet

I want to consume data from ona.io into a leaflet map on another server. I guess using the api with the format: jsonp, might be a way. I'm not sure how to use e.g. leaflet-ajax to parse the data into ...
Lunken's user avatar
  • 23
1 vote
0 answers
105 views

coords of the previous drawned polylines are sent to PostGIS with a form when sending coords of a new drawned polyline

I have a leaflet map in which I can draw some polylines and send their data and coordinates in a PostGIS database with Ajax and Php. When I've created a polyline and send their information in my ...
Hippipers's user avatar
  • 137
1 vote
0 answers
348 views

Reload after modification a WFS layer from Geoserver with AJAX

In a Leaflet map, I’m calling a WFS layer from Geoserver containing multiple polylines whith data associated stored in a PostGIS table (geometry, ...) with AJAX. Everything works fine to dispaly the ...
Hippipers's user avatar
  • 137
1 vote
0 answers
327 views

How to style GeoJSON features with attributes from MySQL in Openlayers 3

I got some GeoJSON-features from a file. The attributes of the features are stored in a database (MySQL), because I need them there for some interactions with users. On the other hand some of these ...
Herman's user avatar
  • 11
1 vote
0 answers
474 views

OpenLayers3, WFS ajax request doesn't work

I'm creating a geoportal, which works only on my localhost. I have a problem with adding to my ol.map a vector layer from Geoserver using WFS. I'm using Geoserver v2.7, OL v3.15.1 and jQuery v2.2.4. I ...
Gabriela's user avatar
1 vote
0 answers
1k views

500 Internal Server Error:System.InvalidOperationException: Missing parameter: settlementlocationcode

Here I'm trying to bind the data from database to table for selected features within the user entered buffer distance. This is working for simple query, but it doesn't work for query using PostGIS ...
User_7877's user avatar
1 vote
0 answers
241 views

Ajax parameters to arcGIS's find Address

I write a ajax to consume the arcGIS services to return json results, I have tried so many way for the findAddress function parameter, non seems work, plese help. Below is my code: function ...
user59828's user avatar
1 vote
0 answers
1k views

How to replace accented characters in the CQL filter, using GeoServer?

I have GIS API based on OpenLayers and GeoServer. I want to perform an Ajax request in order to get all the features that have a given keyword. For example, I could use the CQL filter: name LIKE '%...
joaorodr84's user avatar
1 vote
0 answers
207 views

Leaflet inbuild AJAX methods for WMTS getCapabilities request

I was wondering whether the Leaflet library has inbuilt methods to make AJAX requests. My goal is to create a plugin that makes an XMLHttpRequest request to a specified WMTS resource and parse the XML ...
CG_FD's user avatar
  • 161
1 vote
0 answers
326 views

Openlayers 3, jquery Ajax initialising in Jquery.success()

I have this nice fiddle: http://jsfiddle.net/mindsupport/cujfjby4/14/ Openlayers 3 map initialized in ajax request and all data (points, line etc.) attached in jquery success() method, but map doesn'...
mindsupport's user avatar
1 vote
1 answer
25k 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....
Omar Sarhan's user avatar
1 vote
1 answer
123 views

I am using an example fracnsites to make a similar map but I don't under stand the ajax code?

I am using an example fracnsites to make a similar map but I don't under stand the ajax code? The example has js code: var map, fields = ["gid", "createdby", "featname", "feattype", "status", "acres"...
Tami's user avatar
  • 27
0 votes
0 answers
29 views

Posting id to layer's SQL using laravel (ajax)

I have done the following step to post my id function sendRequestToGeoServerWithId(numericId) { var cqlFilter = "id=" + numericId; // Replace 'id' with the actual attribute name var ...
Priyanka Shakya's user avatar
0 votes
0 answers
139 views

map.getView().fit(vectorLayer.getSource().getExtent(), map.getSize()); is not working

I would like to know how to get all multipolygon features i.e all districts features display on my web map when I select state from dropdown list. This is the query i wrote to get all districts ...
Mounikareddy's user avatar
0 votes
0 answers
138 views

Problems with connection GeoServer - AJAX in web map code

I'm trying to create a WFS connection to show a layer in a Leaflet map, but the layer isn't uploading. I supposedly have correctly employed the code (I've been testing the code with another GeoServer ...
Joaquin87's user avatar
0 votes
0 answers
328 views

AJAX Request (Point Feature, Format GML) with fetch API from WFS failed

I work with OpenLayers 6.9.0. Individual polygon and point features are displayed on the map with a GetFeature request via WFS. The WFS delivers GML, no GeoJSON. Points and polygons come from the same ...
TommyP's user avatar
  • 1
0 votes
0 answers
476 views

Leaflet only allows polygon layer from GeoJSON to be displayed one time

I have used an AJAX call to load a Black Sea GeoJSON that I want to display as a polygon on the map. var blackSea = []; var blackSeaData = new L.GeoJSON.AJAX("./blacksea.json"); blackSea....
Theodcyning's user avatar
0 votes
0 answers
1k views

curl REST API to AJAX

I'm trying to make a web application that is able to : 1) Upload raster data to GeoServer so when I use this command on cmd it works curl -u admin:geoserver -v -XPUT -H "Content-type: image/tiff" --...
Ayoub Beltarchi's user avatar
0 votes
0 answers
949 views

Pushing features to external GeoJSON file

I am working on a project which uses Leaflet and leaflet.draw to show and draw shapes on the map. I also have a data.json file which I use to display former features generated from geojson.io. What I ...
Silvio Progonati's user avatar
0 votes
0 answers
694 views

View GeoJSON data after clicking on the OpenLayers map

I'm trying to make a piece of code that when I click on the map to return GeoJSON property data that I clicked on. I tried this way: map.on('click', function(e){ //console.log(evt); //...
CoderCoder42's user avatar
0 votes
0 answers
164 views

Using WMSGetFeatureInfo() of OpenLayers in Firefox?

I'm trying to read features from the response of an AJAX request using new ol.format.WMSGetFeatureInfo().readFeatures(parameter).The response format is application/vnd.ogc.gml (XML). The thing is that ...
Fran1911989's user avatar
0 votes
0 answers
5k views

Can Leaflet method .getBounds() be used on a layer to determine if a point is within it's bounds?

I am trying to determine if a set of points are within the bounds of a grid layer (specifically what rectangular cells are those points in) so I can highlight just those grid cells (or add a popup for ...
gwydion93's user avatar
  • 1,923
0 votes
0 answers
400 views

Save JSON from Openlayers using AJAX

I am trying to build a web app where users can use OpenLayers to draw features and then save them either as a download or write to a file on the server which I can collect when I need it. I am happy ...
Sethinacan's user avatar
  • 1,850