Friday, 27 April 2018

openlayers 2 - Using WFS Caching / Back button?



I'm using WFS protocol on Vector layer / GeoServer / PostGIS


Currently the map is refreshing and calling new requests whenever i do anything like searching or drawing and when i move back to a part of the map which previously had features already downloaded, it refreshes and call new request again. i need to reuse previous data for previous requests.


I've read that the OpenLayers does not have this functionality. but this was a long time ago.


Is there a way to cache wfs returns by check the boolean in top of the code or anything like that ?


That will help me implement my BACK button so that i can store previous requests in a stack and pull requests when the user clicks the back button.




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...