More or less clear, thanks Martin.
Is there an event at the end of loading all tiles ?
Is there an event at the end of loading all tiles ?
Nope.Is there an event at the end of loading all tiles ?
Sub GetScreenCoords (TappedPoint As GeoPoint) 'X1, Y1 are global tapped screen point coordinates over the Map
Dim m As Mercator, p0 As GeoPoint, X0, Y0 As Int
p0 = MapView1.GetCenter
X0 = m.LonToX(p0.Longitude, MapView1.Zoom)
Y0 = m.LatToY(p0.Latitude, MapView1.Zoom)
X1 = m.LonToX(TappedPoint.Longitude, MapView1.Zoom)
Y1 = m.LatToY(TappedPoint.Latitude, MapView1.Zoom)
X1 = X1 - X0
X1 = MapView1.Width/2 + X1
Y1 = Y1 - Y0
Y1 = MapView1.Height/2 + Y1
End Sub
Any luck?OK, i'll try to get them via Mercator calculations, basing on MapView1.GetCenter and tapped GeoPoint.
UPDATE:
B4X:Sub GetScreenCoords (TappedPoint As GeoPoint) 'X1, Y1 are global tapped screen point coordinates over the Map Dim m As Mercator, p0 As GeoPoint, X0, Y0 As Int p0 = MapView1.GetCenter X0 = m.LonToX(p0.Longitude, MapView1.Zoom) Y0 = m.LatToY(p0.Latitude, MapView1.Zoom) X1 = m.LonToX(TappedPoint.Longitude, MapView1.Zoom) Y1 = m.LatToY(TappedPoint.Latitude, MapView1.Zoom) X1 = X1 - X0 X1 = MapView1.Width/2 + X1 Y1 = Y1 - Y0 Y1 = MapView1.Height/2 + Y1 End Sub
You're referring to Google's HTTP Geocoding API there i guess and not the b4a Geocoder library?is the google maps api key in use with geocoding and does it work without this key?
Notice the use of the word should.All Geocoding API applications should use an API key.
- Enables per-key instead of per-IP-address quota limits.
If you stop using a GoogleMap and switch to an OSMDroid map you're no longer allowed to use the Geocoding API service.The Geocoding API may only be used in conjunction with a Google map; geocoding results without displaying them on a map is prohibited.
GoogleMaps is (i think) a much more professional library.So my second question: what are the biggest differences between them
It's possible but not always practical.is it possible to have the cards of germany and austria on the mobile device
Well, then I don't understand this from https://developers.google.com/maps/faq?csw=1#usage_pricing ..Hi, i have invested much time to make an app, which uses Google Map. One month ago, i had a telephon call with google, because i wanted to know, in which situation we can use google maps for free, and when to we have to pay for the service. In short, as long we make free software, google maps is free, when you get some money, direct or indirect, you have to make an agreement and pay 14.000 € a year. It is calculated as 100 € per user and you have to license 140 users as a first step.
Hello, is possible to mark a trace route two or more points. Show how to get from one point to another, and that I made the layout.
Thanks César