Demonstrating that graphicXOffset works the same in IE and FF.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10137 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2010-03-21 18:00:33 +00:00
parent 7632e54a4d
commit 1f77d278ef

View File

@@ -59,7 +59,7 @@
// of the image will be ignored
style_mark.graphicWidth = 24;
style_mark.graphicHeight = 20;
style_mark.graphicXOffset = -(style_mark.graphicWidth/2); // this is the default value
style_mark.graphicXOffset = 10; // default is -(style_mark.graphicWidth/2);
style_mark.graphicYOffset = -style_mark.graphicHeight;
style_mark.externalGraphic = "../img/marker.png";
// graphicTitle only works in Firefox and Internet Explorer
@@ -116,9 +116,7 @@
<p id="shortdesc">
Shows the use of the shows drawing simple vector features, in different styles.
</p>
<div style="text-align: right">
<div dir="rtl" id="map" class="smallmap"></div>
</div>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>This example shows drawing simple vector features -- point, line, polygon
in different styles, created 'manually', by constructing the entire style