Reputation: 5942
I am using mapbox on my application, When Map is shown, the mapbox logo is shown :
How can I remove logo?
MapboxMap(
accessToken: MAPBOX_TOKEN,
initialCameraPosition: CameraPosition(
target: controller.center.value,
zoom: 8.0,
),
onMapCreated: (ctl) => controller.mapController = ctl,
Upvotes: 1
Views: 2326
Reputation: 1096
If you're using mapbox_maps_flutter you can do it like this:
MapWidget(
onMapCreated: onMapCreated,
)
void onMapCreated(MapboxMap mapboxMap) async {
mapboxMap.logo.updateSettings(LogoSettings(
enabled: false
));
mapboxMap.attribution.updateSettings(AttributionSettings(
enabled: false
));
}
But like others said, you might not want to.
Upvotes: 2
Reputation: 1618
You can't hide the logo and option button from mapbox but you can do a trick.. Set the logoViewMargins
to your comfort which will hide the logo and settings button from the screen... Its will be there but you can't see it
logoViewMargins: const Point<num>(-100, -100),
Upvotes: 0
Reputation: 4706
As per their website
The Mapbox logo is a small image containing the stylized word "Mapbox". It typically resides on the bottom left corner of a map. While you may move the logo to a different corner of the map, we require the Mapbox logo to appear on our maps so that Mapbox and its maps get proper credit.
So no, you should not remove the Mapbox logo. This is the same for Google maps aswell.
Upvotes: 3