I would have re-opened #2941285: Broken relative marker icon path but it's now locked, forcing me to open a new issue...

Although that issue and commit 5dd97c79ef5f might have been an improvement for custom marker icons, the default icons no longer work. ;) I just upgrade a test site to the latest code in 8.x-1.x-dev (commit 3364ed6a2b1) and all of a sudden all my geolocation Google maps are missing their markers. I was never using any custom markers, simply relying on the default. I reverted commit 5dd97c7 and the default markers are back and working again.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dww created an issue. See original summary.

dww’s picture

Status: Active » Needs review
FileSize
965 bytes

I don't completely understand what #2941285 was trying to fix, but I believe the attached patch should preserve that functionality while still letting the default markers work. Basically, we only do the whole token replacement and file_create_url() et al if there's a custom icon path defined. Otherwise, we leave everything blank, which allows the default marker icon to be used.

  • ChristianAdamski committed f051f91 on 8.x-1.x authored by dww
    Issue #2947648 by dww: Default markers are broken after [#2941285]
    
ChristianAdamski’s picture

Fair enough

ChristianAdamski’s picture

Version: 8.x-1.x-dev » 8.x-2.x-dev

Check 8.2.x

ChristianAdamski’s picture

Status: Needs review » Fixed

8.2.x seems not affected due to entirely different structure

dww’s picture

Thanks for the quick fix!

Cheers,
-Derek

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.