Data is the basis for a web mapping application. We can add raster or vector layers to the map, which will load images or vector information.
In the case of vector layers, thanks to the
OpenLayers.Format subclasses, we can configure the layer to load data from different sources and with different formats.
This recipe shows how we can use the helper class
OpenLayers.Request to asynchronously request data from the remote servers.
Here, we are going to request a URL that returns random x and y values that ...