I’d like to popup a message when a user clicks anywhere on the map. Unfortunately any sample code I found depends on either a marker or a polygon etc. Does anybody have code which just shows how to use the popup control with a simple single click? So far I’ve successful used sample “click.html” yet instead of a alert I’d like to popup a message box.
Not quite. Your sample depends on certain features outlined on the map, you can only click a feature. Mine allows to click anywhere on the map (http://www.orpatec.ch/osm/tools/main.php) yet then I have no feature I can link the popup with. I tried