x

Re: Marker werden nicht richtig angezeigt


Geschrieben von Heckflosse (Gast) am 26. März 2011 20:06:02: [flux]

Als Antwort auf: Marker werden nicht richtig angezeigt geschrieben von Ghostrider82 (Gast) am 24. August 2010 21:05:

Ich denke, die Frage ist nicht mehr aktuell. Aber da ich vorbeikam und denke zu wissen, was das problem sein könnte, schreib ich einfach mal was.

In der Openlayers-Api-Doku (http://dev.openlayers.org/apidocs/files … er-js.html) steht:
"Note that if you pass an icon into the Marker constructor, it will take that icon and use it. This means that you should not share icons between markers -- you use them once, but you should clone() for any additional markers using that same icon."
Also keine Ikone zweifach verwenden. Es wird im Text der Doku dann wohl vorgeschlagen, die Ikone zu klonen.