From b7063b364c1b37847a07f363fcae45b0fc6f3116 Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Fri, 17 Aug 2012 23:40:18 +0200 Subject: [PATCH] Enhancements to the MouseCoordinates example. Non-functional change. --- examples/mouse-position.html | 44 ++++++++++++++++++++++++++---------- 1 file changed, 32 insertions(+), 12 deletions(-) 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. +