EVMap icon indicating copy to clipboard operation
EVMap copied to clipboard

Android Auto/Automotive: Pan and zoom the map

Open greentux opened this issue 3 years ago • 5 comments

While not possible to pan the map it would be nixe to change map scale in settings. (zoom level). Useful after solving "no POI on map".

greentux avatar Jun 20 '22 08:06 greentux

The zoom level can currently also not be set manually in the template, it is set automatically to contain all POIs that are currently shown. But I think if Google adds panning to the map, zooming would be added at the same time as well.

So let's make this issue about both panning and zooming. I have requested that in the Google Issue Tracker.

johan12345 avatar Jun 20 '22 21:06 johan12345

How does OsmAnd do this? You can use the map like it would be on the phone. 🤔

PulsarFX avatar Aug 07 '22 21:08 PulsarFX

That is because OsmAnd is a navigation app in the AA classification and not a POI app. These have slightly different UI templates available on AA, with navigation apps more focused on displaying a navigation route and POI apps showing a list of POIs.

POI app templates include a ready-made Google Map that can't be influenced much, while navigation apps need to draw the map on their own - but get the benefit of being able to detect pan/zoom events (and, in the most recent update, also tap events).

Google enforces the separation between AA app categories pretty strictly, so as long as EVMap is not about navigation routing I don't think I would be allowed to switch to the navigation templates.

johan12345 avatar Aug 07 '22 21:08 johan12345

Oh good to know. And here we come back to the routing from charger to charger combined with feeding live data to EvMap we talked about once ;-)

PulsarFX avatar Aug 07 '22 21:08 PulsarFX

Things seem to be heading in the right direction for this to be possible with one of the next releases of the Car App Library: https://issuetracker.google.com/issues/264558094#comment3

johan12345 avatar Jan 09 '24 21:01 johan12345