Closed (fixed)
Project:
Geolocation Field
Version:
8.x-1.x-dev
Component:
Geolocation Field / Backend
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2017 at 11:55 UTC
Updated:
9 May 2018 at 09:33 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
rachel_norfolkAfter a lot of digging through code, I'm now beginning to think this is only read once per view? And that the only current way to get an icon on to the marker is via adding an icon image field? What if I want to store the images somewhere in the theme, for instance? And supply a path to the icon via a text field?
Comment #3
christianadamski commented1.) View token replacement
2.) File path creation
3.) On fail, try Url::fromUri
Locally works fine.
Comment #4
arnaud-brugnon commentedGreat, it works for me !
Comment #5
thedut commentedHello
The patch solve this issue for me to, and it a great feature.
Comment #7
christianadamski commentedPushed with minor alterations.
Comment #9
sneo commentedHi,
Not working for me.
Missing $row_number for find the good token.
I add the row number to the line 205
Works like a charm now, thx, but could it be in the next release ? Hate to patch :)
I'm on version: '8.x-1.10' of geolocation.
Thx all
Comment #10
christianadamski commented@spiderneo,
this is already in -dev release
Comment #11
arnaud-brugnon commentedAnd what about stable release ?
Comment #12
spacetaxi commentedI've been struggling to use the token, and realized that this patch is geared specifically for tokens that have a URI that are then turned into a url through file_create_url. I think that this patch is actually more restrictive then just processing the tokens, which I think is what the original request was for. And, for whatever reason, I have had problems getting my view to even produce a URI for an image in my content type.
I'd suggest this change:
$icon_token_url = $this->viewsTokenReplace($this->options['google_map_settings']['marker_icon_path'], $this->rowTokens[$row_number]);
// $icon_token_url = file_create_url($icon_token_uri);
Comment #13
rituraj.gupta commentedHello,
Can anyone can make google map as in attached screenshot?
Regards,
Ritu Raj