Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add geocoder #785

Closed
wants to merge 1 commit into from
Closed

Add geocoder #785

wants to merge 1 commit into from

Conversation

ebrelsford
Copy link

This change adds a Mapbox GL geocoder to the map controls.

To do:

  • determine whether we want to always show it, currently we do

@@ -687,7 +687,9 @@ export default class App extends React.Component {
options={this.state.mapboxGlDebugOptions}
inspectModeEnabled={this.state.mapState === "inspect"}
highlightedLayer={this.state.mapStyle.layers[this.state.selectedLayerIndex]}
onLayerSelect={this.onLayerSelect} />
onLayerSelect={this.onLayerSelect}
showGeocoder={true}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we always want to show it? Only when there's a valid Mapbox API key?

Copy link
Contributor

@pathmapper pathmapper Aug 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ebrelsford, thanks for your PR but I think would should not include the Mapbox geocoder at all because of the Mapbox Geocoding API terms:

4.1. In General. You may not use Geocodes: [...] (b) to develop any general
purpose printed or digital map (of any geographic size)

From https://assets.website-files.com/5d4296d7a839ea49599adba1/613b743ce6c1fabefc460c25_Mapbox%20Service%20Terms%20(2021.09.10).pdf

And developing a map is what Maputnik is used for :)

@HarelM
Copy link
Collaborator

HarelM commented Jan 12, 2024

@ebrelsford any chance you can rework this PR to add maplibre geocoder with nominatim?
Both are open source with permissive license.

@HarelM
Copy link
Collaborator

HarelM commented Feb 4, 2024

Closed in favor of:

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants