Markers with an
externalGraphic defined don't show up if you've enabled language prefixes for urls.
url() to get the file-url, but unfortunately this function adds a language prefix if these prefixes are enabled.
This makes the returned url useless for our purpose.
openlayers_style_path() was introduced by #1127498: Variable styling syntax being urlencoded for externalGraphics links (Commit: b48585aca7dda5c480832942551aa7b5a02620d7), but the usage of
url() was already introduced by #854552: Support Drupal paths for style graphics (Commit: 025bb538f9397eb96f805425fc047c67c7f77027)
Handover a fake $language object to avoid adding a prefix.
As mentioned by nod_ in #1
file_create_url() looks like the correct approach!
Review latest patch: #2
User interface changes
|openlayers_style_path-must-not-use-language-prefixes-and-whitespaces.patch||4.64 KB||Idle||PASSED: [[SimpleTest]]: [MySQL] 236 pass(es).||View details|
|openlayers_style_path-must-not-use-language-prefixes.patch||1.15 KB||Idle||PASSED: [[SimpleTest]]: [MySQL] 236 pass(es).||View details|