[GIS] Showing custom markers, shadows and popups from JSON data

markersopenlayers-2popupreferences

The examples given in the documentation of OpenLayers show very basic ways of utilising the different features. This example shows how to add shadows to the marker. This example shows how to create basic popups.

Looking at the sample code, I have no idea how to combine the two together, nor display different icons for the markers. Can anyone show me a tutorial or example that combines the various aspects of custom markers, shadows and popups using JSON data?

Best Answer

the OpenLayers Cookbook (http://www.packtpub.com/openlayers-create-gis-web-applications-cookbook/book) has some samples creating markers by hand.

And you can freely download the source code: http://packtlib.packtpub.com/library/9781849517843

Cheers.