I want to change the Icon from the samle "GoogleMapsWebView". I have found a Thread "WebView and Google Maps".
Dim MyCar As String
MyCar="file:///android_asset/car2.png"
HtmlCode = HtmlCode & "; var markerc = new google.maps.Marker({ position: new google.maps.LatLng(" & CenterLat & "," & CenterLong & "),map: map, title: '',clickable: false,icon:'" & MyCar & "'})"
I have created a folder under my Samsung but the program shows no Icon. It shows nothing on the map.
The folder under the phone is : Phone/mnt/sdcard/Test_Mystery
The Msgbox shows : /mnt/sdcard/Test_Mystery
' Dim cicon2 As String : cicon2 = File.DirDefaultExternal.Trim&"/hier.png"
' Dim cicon2 As String : cicon2 = File.DirAssets.Trim&"/hier.png"
Dim cicon2 As String : cicon2 = File.DirRootExternal&"/Test_Mystery/hier.png"
' Dim cicon2 As String : cicon2 = File.DirRootExternal&"/hier.png"
' Dim cicon2 As String : cicon2 = File.DirInternal.Trim&"/hier.png"
' Dim cicon2 As String : cicon2 = "file:///android_asset/hier.png"
' Dim cicon2 As String : cicon2 = "//android_asset/hier.png"
Msgbox(cicon2,"cIcon2")
HtmlCode = HtmlCode & "; markerc = new google.maps.Marker({ position: new google.maps.LatLng(" & CenterLat & "," & CenterLong & "),map: map, title: '',clickable: false,icon: "&cicon2&" })"
I added the File "Hier.png" under B4A under files too.
Martin
Dim MyCar As String
MyCar="file:///android_asset/car2.png"
HtmlCode = HtmlCode & "; var markerc = new google.maps.Marker({ position: new google.maps.LatLng(" & CenterLat & "," & CenterLong & "),map: map, title: '',clickable: false,icon:'" & MyCar & "'})"
I have created a folder under my Samsung but the program shows no Icon. It shows nothing on the map.
The folder under the phone is : Phone/mnt/sdcard/Test_Mystery
The Msgbox shows : /mnt/sdcard/Test_Mystery
' Dim cicon2 As String : cicon2 = File.DirDefaultExternal.Trim&"/hier.png"
' Dim cicon2 As String : cicon2 = File.DirAssets.Trim&"/hier.png"
Dim cicon2 As String : cicon2 = File.DirRootExternal&"/Test_Mystery/hier.png"
' Dim cicon2 As String : cicon2 = File.DirRootExternal&"/hier.png"
' Dim cicon2 As String : cicon2 = File.DirInternal.Trim&"/hier.png"
' Dim cicon2 As String : cicon2 = "file:///android_asset/hier.png"
' Dim cicon2 As String : cicon2 = "//android_asset/hier.png"
Msgbox(cicon2,"cIcon2")
HtmlCode = HtmlCode & "; markerc = new google.maps.Marker({ position: new google.maps.LatLng(" & CenterLat & "," & CenterLong & "),map: map, title: '',clickable: false,icon: "&cicon2&" })"
I added the File "Hier.png" under B4A under files too.
Martin
Last edited: