[OpenLayers-Users] OpenLayer map drawing symbols... are there others?

Arnd Wippermann arnd.wippermann at web.de
Wed Apr 29 16:27:26 EDT 2009


Hi,

You can create your own symbols

http://openlayers.org/dev/examples/graphic-name.html

OpenLayers.Renderer.symbol.lightning = [0,0, 4,2, 6,0, 10,5, 6,3, 4,5, 0,0];
OpenLayers.Renderer.symbol.rectangle = [0,0, 10,0, 10,4, 0,4, 0,0];

Or you use an image as symbol.

Arnd 

-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von plen
Gesendet: Mittwoch, 29. April 2009 21:08
An: users at openlayers.org
Betreff: [OpenLayers-Users] OpenLayer map drawing symbols... are there
others?


Hello,

I am looking at the symbols that can be drawn on the map and have used one
of the OL examples to create symbols via:

var style = createSymbolStyle(SELECTED_SYMBOL_TYPE,
		                      frm.symbol_stroke_color.value,
		                      frm.symbol_fill_color.value,
		                      frm.symbol_radius.value,
		                      frm.symbol_stroke_width.value,
		                      frm.symbol_rotation.value,
		                      frm.symbol_opacity.value);

where the SELECTED_SYMBOL_TYPE = star, cross, x, triangle, square, or
circle.

Our customer wants to have a shape symbol palette, such as what you might
find in Powerpoint, for example.  My question is whether the OL
createSymbolStyle function knows about other symbols than I referenced
above, or what else might be done to add more symbols options.

Any thoughts?

Thanks - Peter


--
View this message in context:
http://n2.nabble.com/OpenLayer-map-drawing-symbols...-are-there-others--tp27
42651p2742651.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list