O'Reilly logo

OpenLayers Cookbook by Antonio Santiago Perez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting information from the WMS server

Nowadays, the Web Map Service (WMS) has an important role in the GIS world, mainly because rendering tons of vector data at the client-side, no matter if its browser on a desktop consumes many resources.

If we think, in the OpenStreetMap project, where we have tons of vector data about streets, places, and so on, we can see that the main way to render data is in a raster way.

In this scenario, WMS servers allow us to get vector or raster data, from a shapefile, from a .geotiff file, from a spatial database, and so on, and render all together as a single image. Not only that, if properly configured, a WMS server allows us to query information of a feature at a given point.

With OpenLayers, this can be easily ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required