I just started working with OpenLayers because I want to include
a map on my JSF page (.xhtml files). I want to use the same
feature that is demonstrated in this example:
http://openlayers.org/dev/examples/styles-context.html I played
with the code a little bit in the html example files that come
with the .zip download. When I copied the code into my JSF
.xhtml page, the map appears but the markers are not displayed.
Here is the example code: and changed the markers from 50 random
to 2 markers of the coordinates of London and Berlin. And the
map was centered exactly to show them, but the markers are still
not displayed. But that proves that the markers are read and
loaded to the map correctly, just not displayed. If I do the
same back in the example .html page the map is again centered
properly and the markers are displayed. I have uploaded the
example .html file to my webapp and it works perfectly. So this
seems to be the .xhtml issue... Is it the problem of xhtml? How
to fix this? Using the google console t