gmsgroundoverlay

Android GoogleMaps GroundOverlay Padding

懵懂的女人 提交于 2020-02-27 09:56:12
问题 This post is very similar to This, which does not currently have a solution (3 years old) The main issue is that GoogleMaps seems to be adding an unnecessary amount of padding around my ground overlay image this doesn't make sense to me since the boundaries are set to the same lat,lngs as the ground overlay. @Override public void onMapReady(GoogleMap googleMap) { final LatLngBounds NewarkBounds = new LatLngBounds( new LatLng(FILL, -FILL), new LatLng(FILL, -FILL) ); mMap = googleMap; mMap

Limit camera only on a ground overlay? Google Map Android API v2

独自空忆成欢 提交于 2020-02-15 08:07:06
问题 I'm trying to show a ground overlay with markers on it to my users. I'm trying to restrain the view to only this image placed on the map. I want the user to only see the image as a ground overlay placed on the map and not be able to go to the surrounding map. And if they go over the edge, the gestures will be blocked. I want something like this: I don't want this: show-only-ground-overlays-map-android or this: I tried to set my map.setLatLngBoundsForCameraTarget() to my image bounds but the

Is it possible to hide(toggle) the main map layer and display only the ground overlay image itself?

你离开我真会死。 提交于 2019-12-18 07:19:58
问题 I have a groundOverlay image and i want that the main map can be switched on/off so that only the overlay image can be displayed. is that possible? PS: I am using the javascript api v3. 回答1: You may implement a custom MapType(which doesn't render Tiles), then you only need to toggle between this custom MapType and a built-in MapType(e.g. ROADMAP): function initialize() { var goo = google.maps, map = new goo.Map(document.getElementById('map-canvas'), { zoom: 11, center: new goo.LatLng(40.740,

Pulse animation using GroundOverlay

一世执手 提交于 2019-12-02 04:07:33
I need to show location A and the location B by pulse animation. I am able to achieve that using the below code. But the problem I am facing is the GroundOverlay changes its size when the zoom level changes. If the location A and B are close to each other(i.e the map zoom in level is high) the radius of the pulse is too big. When I zoom out then it becomes too small. How can I keep the size of the overlay same irrespective of the zoom level of the map. The below code is referred from here: Animated Transparent Circle on Google Maps v2 is NOT animating correctly private void showRipples(LatLng

Pulse animation using GroundOverlay

北战南征 提交于 2019-12-02 03:28:47
问题 I need to show location A and the location B by pulse animation. I am able to achieve that using the below code. But the problem I am facing is the GroundOverlay changes its size when the zoom level changes. If the location A and B are close to each other(i.e the map zoom in level is high) the radius of the pulse is too big. When I zoom out then it becomes too small. How can I keep the size of the overlay same irrespective of the zoom level of the map. The below code is referred from here:

Is it possible to hide(toggle) the main map layer and display only the ground overlay image itself?

亡梦爱人 提交于 2019-11-29 12:31:14
I have a groundOverlay image and i want that the main map can be switched on/off so that only the overlay image can be displayed. is that possible? PS: I am using the javascript api v3. You may implement a custom MapType(which doesn't render Tiles), then you only need to toggle between this custom MapType and a built-in MapType(e.g. ROADMAP): function initialize() { var goo = google.maps, map = new goo.Map(document.getElementById('map-canvas'), { zoom: 11, center: new goo.LatLng(40.740, -74.18), mapTypeControl: false }), mt = function() { this.getTile = function() { var n = document