Hi team,
I’wanted to check if there is (or will be) support for adding Google Maps tiles similar to how it works in MapLibre GL JS.
In the web version, the community package maplibre-google-maps provides this functionality:
- It exposes a
googleProtocol handler to be registered with
maplibregl.addProtocol('google', googleProtocol)
- It provides
createGoogleStyle(...) to generate a Google Maps–backed style.
Example from web:
import { googleProtocol, createGoogleStyle } from 'maplibre-google-maps';
maplibregl.addProtocol('google', googleProtocol);
const map = new maplibregl.Map({
container: 'map',
style: createGoogleStyle('google', 'roadmap', 'YOUR_GOOGLE_KEY'),
});
However, in maplibre-react-native, I couldn’t find an equivalent API like addProtocol or any mechanism to plug in a custom protocol handler or custom tile source in a similar way.
My questions:
-
Is Google Maps tile support planned for MapLibre React Native?
(either via first-party API or compatibility with maplibre-google-maps)
-
If not planned, is there currently any alternative way to register a custom tile protocol (like addProtocol) in the React Native SDK?
This feature would be extremely helpful for apps that need to use Google imagery or switch between MapLibre and Google tiles dynamically.
Thanks for your great work on the project!
Hi team,
I’wanted to check if there is (or will be) support for adding Google Maps tiles similar to how it works in MapLibre GL JS.
In the web version, the community package maplibre-google-maps provides this functionality:
googleProtocolhandler to be registered withmaplibregl.addProtocol('google', googleProtocol)createGoogleStyle(...)to generate a Google Maps–backed style.Example from web:
However, in maplibre-react-native, I couldn’t find an equivalent API like
addProtocolor any mechanism to plug in a custom protocol handler or custom tile source in a similar way.My questions:
Is Google Maps tile support planned for MapLibre React Native?
(either via first-party API or compatibility with
maplibre-google-maps)If not planned, is there currently any alternative way to register a custom tile protocol (like
addProtocol) in the React Native SDK?This feature would be extremely helpful for apps that need to use Google imagery or switch between MapLibre and Google tiles dynamically.
Thanks for your great work on the project!