Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The examples given in the documentation of Open Layers 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?

share|improve this question
OpenStreetMap is not the same as OpenLayers. Please edit your question. – drnextgis Oct 10 '12 at 1:34
@drnextgis, noted. It's done. – Question Overflow Oct 10 '12 at 9:35
up vote 1 down vote accepted

the OpenLayers Cookbook ( has some samples creating markers by hand.

And you can freely download the source code:


share|improve this answer
Thanks for the tip. The examples look complex enough. Hope to find what I want.. – Question Overflow Oct 10 '12 at 9:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.