Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Plotting points on a city map #249

Closed
icaromedeiros opened this issue Feb 10, 2016 · 6 comments · May be fixed by aravindb26/plotly.js#1
Closed

Plotting points on a city map #249

icaromedeiros opened this issue Feb 10, 2016 · 6 comments · May be fixed by aravindb26/plotly.js#1

Comments

@icaromedeiros
Copy link

I'm trying to use plotly (an offline plot) to draw a map showing a scatter plot with enough detail to show urban movement in a city.

I need a "zoom in scope" like this https://www.google.com.br/maps/@-23.9686819,-46.3175511,13z?hl=en

Is it possible to do it in plotly?

I'm confused with the (110 | 50) limitation in scope https://plot.ly/python/reference/#layout-geo-resolution

Is there a way to customize it?

@icaromedeiros
Copy link
Author

BTW, if it is possible, it would be nice to include an example in https://plot.ly/python/#maps

@etpinard
Copy link
Contributor

Plotting at the city level is outside the current scope of plotly.js geographic maps.

I'd recommend using leaflet or MapBox for your use case, as plotly.js is never going to compete against their large dev teams.

We do hope to compete against matplotllib basemap at some point though.

@ispmarin
Copy link

Thanks, @etpinard. Basemap can adjust their resolution level to city scope quite easily, though.

BTW, what would require to include city-level plotting in plotly? We may be able to contribute.

@smenon8
Copy link

smenon8 commented Jul 28, 2016

@ispmarin Could you share a sample code for adjusting the resolution level to a certain geographic region using Baseman? I am specifically looking to visualization something in Nairobi National Park.

@etpinard
Copy link
Contributor

Oh. I forgot about this issue.

You can plot city maps using our scattermapbox trace type - which uses mapbox-gl internally.

Here's an example: http://codepen.io/etpinard/pen/oLdaXP

@smenon8
Copy link

smenon8 commented Jul 28, 2016

Thank you @etpinard

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

Successfully merging a pull request may close this issue.

4 participants