Hi,
could someone give me an advice how to set custom markers?

I'm working with geolocation in profile entity and created some custom png markers. Width and height are 64px. I loaded them into /sites/default/files/

Then in form widget, display widget and in views under Marker Icon Path I set /sites/default/files/3D-Marker.png

But no marker is shown. All are hidden.

Comments

quixxel created an issue. See original summary.

tormi’s picture

Just remove the first slash from path and it should work: sites/default/files/3D-Marker.png

Tormi

tormi’s picture

Status: Active » Fixed
quixxel’s picture

Okay thx.
Now it works on the view page. Thats great.

But its not displayed on the map of a single profile page where I'm using the same path for that custom marker.

quixxel’s picture

Category: Support request » Bug report

Okay I found the issue:
on display settings and form display settings to get custom markers visible you have to use absolute paths. Relative paths are not working. Then custom markers are hidden.

So it shouldn't have a fixed status.

tormi’s picture

Confirmed.

tormi’s picture

Title: Custom markers not loading » Broken relative marker icon paths
Status: Fixed » Needs review
StatusFileSize
new808 bytes

Patch added.

Status: Needs review » Needs work

The last submitted patch, 7: 2941285-broken-relative-marker-icon paths-7.patch, failed testing. View results

tormi’s picture

Status: Needs work » Needs review
StatusFileSize
new808 bytes

Removed space from patch's filename.

tormi’s picture

Status: Needs review » Needs work

This needs some additional testing..

tormi’s picture

Status: Needs work » Needs review

Tested.

quixxel’s picture

Great.
Now it works.
Thx for quick patching.

tormi’s picture

Status: Needs review » Reviewed & tested by the community

RTBC as per #12.

tormi’s picture

Title: Broken relative marker icon paths » Broken relative marker icon path

christianadamski’s picture

Status: Reviewed & tested by the community » Fixed

Minimally altered patch. Thanks.

Status: Fixed » Closed (fixed)

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

dww’s picture

Note: this issue + commit broke the default marker icons.
See #2947648: Default markers are broken after [#2941285].
People using custom icon paths are strongly encouraged to test that so we ensure we don't re-break your world while fixing the default. I was careful, but real-world testing is always appreciated.

Thanks!
-Derek