OK, I was able to see the marker locally also.
To do it, I modified the function
OpenLayers.Renderer.Elements.drawGeometry(geometry, style, featureId) :
...
if (style.display != "none") {
if (!style.strokeColor && !style.fillColor && (geometry.CLASS_NAME !=
"OpenLayers.Geometry.Point" )) {
Hello,
I'm also looking for a way to render a polygon as a marker.
I found an example in the sandboxes :
http://dev.openlayers.org/sandbox/topp/almanac/examples/vector-rendering-externalGraphics.html
(the red marker is representing a polygon).
I'm trying to do the same locally (using OL 2.9 a
ad of removing them.
acangi wrote:
>
> Hi list,
>
> I'm trying to use the controls Navigation and ZoomBox separately : using
> my other (non-openlayers) controls, I'd like to switch between Navigation
> and ZoomBox, like it's done here :
> http://openlayers.or
Hi list,
I'm trying to use the controls Navigation and ZoomBox separately : using my
other (non-openlayers) controls, I'd like to switch between Navigation and
ZoomBox, like it's done here :
http://openlayers.org/dev/examples/navtoolbar-alwaysZoom.html
http://openlayers.org/dev/examples/navtoolb