diff --git a/examples/mouse-position.html b/examples/mouse-position.html index 4e78e9b135..924d3bccc4 100644 --- a/examples/mouse-position.html +++ b/examples/mouse-position.html @@ -1,5 +1,5 @@ - + @@ -7,41 +7,61 @@ MousePosition Control - + - +

MousePosition Control

- coordinate + coordinate

Use the MousePosition Control to display the coordinates of the cursor inside or outside the map div.

-
-

Moving your mouse to the upper left corner of this map should return - 'x=0,y=0' -- in the past, it didn't in IE. If it returns 2,2, consider it a - bug, and report it.

+
+

+ This example also shows how to use the the "prefix", "separator" and + "numDigits" options to customize the output of the MousePosition-Control. + By also setting the "emptyString"-property, the contents of the controls + element are resetted to the given string when the mouse isn't above the + map. +

+

+ Moving your mouse to the upper left corner of this map should return + 'x=0,y=0' (pixel coordinates) -- in the past, it didn't in IE. If it + returns 'x=2,y=2', consider it a bug, and report it. +