Dim BitmapDescriptor1 As BitmapDescriptor
Dim BitmapDescriptorFactory1 As BitmapDescriptorFactory
BitmapDescriptor1=BitmapDescriptorFactory1.FromAsset("location1.png")
Dim MarkerOptions1 As MarkerOptions
MarkerOptions1.Initialize
MarkerOptions1.Icon(BitmapDescriptor1)
Dim Marker3 As Marker
Marker3.Initialize("Jiblea", "...pe pe Valea Oltului", 45.29182, 24.370054, MarkerOptions1)
Dim Markers As List
Markers.Initialize2(Array As Object(Marker2, Marker3))
MarkersFocusOverlay1.AddMarkers(Markers)
error: package com.google.android.gms.maps.model does not exist
. True, error appear at Marker3.InitializeUnknown member: initialize
Dim BitmapDescriptor1 As BitmapDescriptor
Dim BitmapDescriptorFactory1 As BitmapDescriptorFactory
BitmapDescriptor1=BitmapDescriptorFactory1.FromAsset("location1.png")
Dim MarkerOptions1 As MarkerOptions
MarkerOptions1.Initialize
MarkerOptions1.Icon(BitmapDescriptor1)
MarkerOptions1.Position2(45.29182, 24.370054)
MarkerOptions1.Snippet("...pe pe Valea Oltului")
MarkerOptions1.Title("Jiblea")
Dim Marker3 As Marker
Dim GoogleMapsExtras1 As GoogleMapsExtras
Marker3=GoogleMapsExtras1.AddMarker(GoogleMap1, MarkerOptions1)
Dim Markers As List
Markers.Initialize2(Array As Object(Marker2, Marker3))
MarkersFocusOverlay1.AddMarkers(Markers)
Hi,
I'm having troubles with displaying bitmaps as my placemarkers. My icons are 40x40 but on the map only a small part is shown of each .png.
Any suggestions?
hi
I have this same issue, if the icon is 32x32 it's ok, but grater than that I got the issue.
How to fix it ?
thanks.
Maybe it's a (built in) limitation of Google Maps?
Have you searched Google to see if it's a known limitation?
Dim BitmapDesctiptor1 As BitmapDescriptor
Dim BitmapDescriptorFactory1 As BitmapDescriptorFactory
BitmapDesctiptor1 = BitmapDescriptorFactory1.FromAsset("marker.png")
Dim MarkerOptions1 As MarkerOptions
MarkerOptions1.Initialize
MarkerOptions1.Icon(BitmapDesctiptor1)
MarkerOptions1.Position2(actualLocation.Latitude, actualLocation.Longitude)
MarkerOptions1.Title("Home")
MarkerOptions1.Snippet("Your home")
Dim Marker3 As Marker
Dim GoogleMapExtras1 As GoogleMapsExtras
If gmap.IsInitialized Then
Marker3 = GoogleMapExtras1.AddMarker(gmap, MarkerOptions1)
End If