From 8e1eb78c26504eaf2998eb256fe1815cb2f6a431 Mon Sep 17 00:00:00 2001
From: crschmidt
Date: Fri, 13 Jul 2007 13:31:40 +0000
Subject: [PATCH] Add support to the vector layer to visualize point geometries
with images. This support was added, tested, and documented by Andreas
Hocevar, and I want to thank him for the work he put into this patch. It
looks pretty great. (This is from ticket #736.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3729 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
---
examples/vector-features.html | 33 +++++++++-
lib/OpenLayers/Renderer/SVG.js | 37 ++++++++++-
lib/OpenLayers/Renderer/VML.js | 48 ++++++++++++++-
tests/Layer/test_Vector.html | 109 ++++++++++++++++++++++++++++++++-
4 files changed, 221 insertions(+), 6 deletions(-)
diff --git a/examples/vector-features.html b/examples/vector-features.html
index a7193227c9..a8ba5040c3 100644
--- a/examples/vector-features.html
+++ b/examples/vector-features.html
@@ -7,7 +7,7 @@
border: 1px solid black;
}
-
+
@@ -75,5 +97,12 @@
in different styles, created 'manually', by constructing the entire style
object, via 'copy', extending the default style object, and by
inheriting the default style from the layer.
+ It also shows how to use external graphic files for point features
+ and how to set their size: If either graphicWidth or graphicHeight is set,
+ the aspect ratio of the image will be respected. If both graphicWidth and
+ graphicHeight are set, it will be ignored. Alternatively, if graphicWidth
+ and graphicHeight are omitted, pointRadius will be used to set the size
+ of the image, which will then be twice the value of pointRadius with the
+ original aspect ratio.