developmentseed / developmentseed/lonboard

[EPIC] Add Google Maps JS API vector map option to Lonboard

Open
#454 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
964
Forks
54
Avg merge
5m
Merged PRs (30d)
1

Description

## Context
Offer developers the flexibility to choose another map, such as a [Google Map JS API](https://developers.google.com/maps/documentation/javascript/overview) map, provided the map SDK supports native Deck.gl layers as the [deck.gl and Google Maps Platform JS API does](https://deck.gl/docs/developer-guide/base-maps/using-with-google-maps). Supporting additional base map types (such as ESRI / HERE / Google) would expand developer reach and value of the library
* [Google Maps JS API / deck.gl example](https://developers.google.com/maps/documentation/javascript/examples/deckgl-arclayer)
* ![image](https://github.com/developmentseed/lonboard/assets/4342845/e3ca0f70-07cd-419f-b453-eb6cf23d0bf0)

Keeping the base map to a vector style is key to maintain UX parity with Lonboard today via MapLibre GL. Support for another base map using ZXY raster tiles as a Maplibre source is a potential option to fulfil this user journey, but it is not the specific proposal I'm making in this issue as raster base map sources would significantly change the UX (e.g. no collision detection, z-layer ordering, etc)

## Issue
This would require:

1. Instantiating the map using Google Maps JS API vs. MapLibre GL JS
2. Updating any UI bindings tightly coupled to the Maplibre GL e.g. placing legends, map controls, etc on the Map div.
3. Adding a developer option for the user to bring their own API access key and map id instead of just hard-coded map styles in https://github.com/developmentseed/lonboard/blob/main/lonboard/basemap.py
4. Other considerations - please add additional details / risks here, looking for feedback!

## Acceptance-Criteria
The tasks that need to be completed or artifacts that need to be produced:
- [ ] Determine feasibility and alignment with repo owners
- [ ] Mock up the API design and options, get feedback from repo owners
- [ ] Create PR with map options and updates, tests, release notes
- [ ] Review and merge

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.