add geoRenderType optional paramter to geoscatter geoplot and geobubble functionalities #400
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR add a new optional parameter to
fig2plotly
which works forgeoscatter
,geoplot
andgeobubble
functionalities. This optional parameter is called'geoRenderType'
and it allows us to set the type of rendering that we want for the geographic charts. Among the rendering types we have: 1)'geo'
(by default) which is based on D3.js and 2)'mabox'
which is tile-based.'mapbox'
is much more powerful in terms of visualization, but it has certain limitations regarding the configuration of markers and texts. The user can now choose the type of rendering they want.This PR has been tested for all examples at https://github.com/plotly/ssim_baselines/tree/main/matlab/code-examples/geographic-plots.
I share below two examples (one for each type of rendering) using the
geoplot
functionality. However, both examples can be extended to the other two geographic chart functionalities (geoscatter
andgeobubble
). Feel free to recreate these examples.geo
rendering:mapbox
rendering:Attach bellow results all geographic charts as well as links to chart-studio for each redering type
geoscatter
:https://chart-studio.plotly.com/~galvisgilberto/4548/#/
https://chart-studio.plotly.com/~galvisgilberto/4550/#/
https://chart-studio.plotly.com/~galvisgilberto/4552/#/
https://chart-studio.plotly.com/~galvisgilberto/4554/#/
geoplot
:https://chart-studio.plotly.com/~galvisgilberto/4556/#/
https://chart-studio.plotly.com/~galvisgilberto/4558/#/
https://chart-studio.plotly.com/~galvisgilberto/4560/#/
https://chart-studio.plotly.com/~galvisgilberto/4564/#/
https://chart-studio.plotly.com/~galvisgilberto/4566/#/
https://chart-studio.plotly.com/~galvisgilberto/4568/#/
geobubble
:https://chart-studio.plotly.com/~galvisgilberto/4570/earthquake-earthquake-and-landslide-landslide-meteorological-unknown-cause-volca/#/
https://chart-studio.plotly.com/~galvisgilberto/4572/earthquake-earthquake-and-landslide-landslide-meteorological-unknown-cause-volca/#/