ttsolution Member Licensed User Longtime User Feb 26, 2015 #1 Dear all, Could you please help me on how to add multi line google map Maker. My code below does'nt works. It display plain text rather than 2 lines as expected. I tried with CRLF but still not works. Code: Copy Dim mDescrition as string ="<b>" & mCustomerName & "</b><br>" & mAddress gmap.AddMarker3(LAT, LON, mDescrition,ico) Many thanks Jonh,
Dear all, Could you please help me on how to add multi line google map Maker. My code below does'nt works. It display plain text rather than 2 lines as expected. I tried with CRLF but still not works. Code: Copy Dim mDescrition as string ="<b>" & mCustomerName & "</b><br>" & mAddress gmap.AddMarker3(LAT, LON, mDescrition,ico) Many thanks Jonh,
Erel B4X founder Staff member Licensed User Longtime User Feb 26, 2015 #2 Try: Code: Copy Dim m As Marker = gmap.AddMarker3(...) m.Snippet = "Second line" & CRLF & "third line" Upvote 0
Try: Code: Copy Dim m As Marker = gmap.AddMarker3(...) m.Snippet = "Second line" & CRLF & "third line"
eurojam Well-Known Member Licensed User Longtime User Feb 26, 2015 #3 You can also try the example provided from Martin which uses a Panel which is called by the InfoWindowAdapter1_GetInfoContents(Marker1 As Marker) As View Event. In this panel you can load a normal b4a layout, containing for example a webview where you can use html as infotext for your marker. This will give you more possibilties. https://www.b4x.com/android/forum/threads/googlemapextra-custom-annotation.30695/#post-178622 Upvote 0
You can also try the example provided from Martin which uses a Panel which is called by the InfoWindowAdapter1_GetInfoContents(Marker1 As Marker) As View Event. In this panel you can load a normal b4a layout, containing for example a webview where you can use html as infotext for your marker. This will give you more possibilties. https://www.b4x.com/android/forum/threads/googlemapextra-custom-annotation.30695/#post-178622
ttsolution Member Licensed User Longtime User Feb 26, 2015 #4 I've tried Erel's note but not works, only plain text displayed. I will tried with eurojam link. Many thanks, Upvote 0
I've tried Erel's note but not works, only plain text displayed. I will tried with eurojam link. Many thanks,
Paolo Pini Member Licensed User Longtime User Jun 7, 2018 #5 Erel said: Try: Code: Copy Dim m As Marker = gmap.AddMarker3(...) m.Snippet = "Second line" & CRLF & "third line" Click to expand... It works for me! Upvote 0
Erel said: Try: Code: Copy Dim m As Marker = gmap.AddMarker3(...) m.Snippet = "Second line" & CRLF & "third line" Click to expand... It works for me!
DonManfred Expert Licensed User Longtime User Jun 7, 2018 #6 Paolo Fiaschi said: It works for me! Click to expand... This is not relevant! Note that this is a THREE years old Thread and you should´nt have pushed it.... Upvote 0
Paolo Fiaschi said: It works for me! Click to expand... This is not relevant! Note that this is a THREE years old Thread and you should´nt have pushed it....