Skip to content

Support for Google Maps integration / addProtocol API #1132

Description

@niranjan-talkinglands

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:

  1. Is Google Maps tile support planned for MapLibre React Native?
    (either via first-party API or compatibility with maplibre-google-maps)

  2. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions