Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to re-position Google Maps logo and map buttons

How do you change the position of the Google logo (originally at the bottom left corner) and other map buttons (location, zoom in/out, etc.) of the GoogleMap widget?

I would also like to know if you can disable/enable them.

I am using google_maps_flutter package version ^0.5.19.

like image 441
Rami Ibrahim Avatar asked Aug 31 '19 04:08

Rami Ibrahim


2 Answers

I found a workaround, not the best solution I guess, but should work

simply add padding to GoogleMap() widget, set bottom and left values as your wish

new GoogleMap(
    padding: EdgeInsets.only(bottom: 100, left: 15), // <--- padding added here
    // rest of parameters
    // ....
)

NOTE !!

If you pick locations from a point at the center of the screen, adding padding to GoogleMap() should affect/change the values of location picked. so have that considered.

Thank you

like image 82
Rami Ibrahim Avatar answered Sep 28 '22 14:09

Rami Ibrahim


Apparently there is no direct/reliable way to do so and even if you can somehow use Stack to cover that logo you shouldn't do it either.

You might get into trouble while uploading your app on Google Playstore.

If you don't care about moral values just read through this:

9.4 Attribution.

(a) Content provided to you through the Service may contain the trade names, trademarks, service marks, logos, domain names, and other distinctive brand features of Google, its partners, or other third party rights holders of content indexed by Google. When Google provides this attribution, you must display it as provided through the Service or as described in the Maps APIs Documentation and may not delete or in any manner alter these trade names, trademarks, service marks, logos, domain names, and other distinctive brand features.

https://developers.google.com/maps/terms

Google already offers a -WIDE- range of free and freemium services from fonts to ... to ... to Flutter. Imagine if you were instead of Google what would you do if you find someone trying to misuse your app's free service which actually costs you money.

If you just want to relocate the icon edit the source code of that package by hovering on GoogleMap() while pressing Ctrl and then right click when the text turns blue. A new window with source code of GoogleMap widget will appear where you can check and edit how the position of the logo is specified but I can't guarantee you that it is allowed.

like image 21
Son of Stackoverflow Avatar answered Sep 28 '22 15:09

Son of Stackoverflow