Test Area Index

UK Google Map  -  Problem Demo

OpenLayers Control Positioning & Styling  -  Created using OpenLayers API

 

The left map accepts default positions for the Scaleline, Scale, and MousePosition, so the Scaleline and the Google logo, and the MousePostion and the longer copyright messages on the Satellite & Hybrid baselayers, mutually interfere.

The right map repositions the controls programmatically by setting left and top styles on each control's div.  But OL surprisingly fails to set sensible default width and height styles for them, so most of the map area lies 'behind' the controls, and, depending on browser, this may break the dragging of the marker &/or the action of the layer switcher control.

Further, the black colour of the controls is fine for the Map baselayer, while white is barely readable, but when either the Satellite or Hybrid baselayers is chosen, it is white that is visible and black barely readable.
OpenLayers Ticket #2077

This demo uses OpenLayers 'trunk' (/dev/) to allow for easier testing of potential solutions.

Valid XHTML 1.0 Transitional