-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improvement: better leafmap formatters (#2852)
* Adds formatters for plotly and kepler. * Warns about using the default leafmap formatter * Smoke test for different backends. opengeos/leafmap#973 will help when doing `import leafmap`
- 0.11.16
- 0.11.15
- 0.11.14
- 0.11.13
- 0.11.12
- 0.11.11
- 0.11.10
- 0.11.9
- 0.11.8
- 0.11.7
- 0.11.6
- 0.11.5
- 0.11.4
- 0.11.3
- 0.11.2
- 0.11.1
- 0.11.0
- 0.10.19
- 0.10.18
- 0.10.17
- 0.10.16
- 0.10.15
- 0.10.14
- 0.10.13
- 0.10.12
- 0.10.11
- 0.10.10
- 0.10.9
- 0.10.8
- 0.10.7
- 0.10.6
- 0.10.5
- 0.10.4
- 0.10.3
- 0.10.2
- 0.10.1
- 0.10.0
- 0.9.34
- 0.9.33
- 0.9.32
- 0.9.31
- 0.9.30
- 0.9.29
- 0.9.28
- 0.9.27
- 0.9.26
- 0.9.25
- 0.9.24
- 0.9.23
- 0.9.22
- 0.9.21
- 0.9.20
- 0.9.19
- 0.9.18
Showing
5 changed files
with
138 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
import marimo | ||
|
||
__generated_with = "0.9.17" | ||
app = marimo.App(width="medium") | ||
|
||
|
||
@app.cell | ||
def __(): | ||
import marimo as mo | ||
return (mo,) | ||
|
||
|
||
@app.cell | ||
def __(): | ||
import leafmap as default_leamap | ||
import leafmap.leafmap as leafmap | ||
import leafmap.foliumap as leafmap_folium | ||
import leafmap.plotlymap as leafmap_plotly | ||
return default_leamap, leafmap, leafmap_folium, leafmap_plotly | ||
|
||
|
||
@app.cell | ||
def __(): | ||
import keplergl | ||
import leafmap.kepler as leafmap_kepler | ||
return keplergl, leafmap_kepler | ||
|
||
|
||
@app.cell | ||
def __(default_leamap): | ||
default_leamap.Map | ||
return | ||
|
||
|
||
@app.cell | ||
def __(leafmap): | ||
data = leafmap.examples.datasets.countries_geojson | ||
return (data,) | ||
|
||
|
||
@app.cell | ||
def __(data, leafmap): | ||
_m = leafmap.Map() | ||
_m.add_data( | ||
data, | ||
column="POP_EST", | ||
scheme="Quantiles", | ||
cmap="Blues", | ||
legend_title="Population", | ||
) | ||
_m | ||
return | ||
|
||
|
||
@app.cell | ||
def __(leafmap_plotly): | ||
_m = leafmap_plotly.Map(center=(40, -100), zoom=3, height=500) | ||
_m | ||
return | ||
|
||
|
||
@app.cell | ||
def __(data, leafmap_folium): | ||
_m = leafmap_folium.Map() | ||
_m.add_data( | ||
data, | ||
column="POP_EST", | ||
scheme="Quantiles", | ||
cmap="Blues", | ||
legend_title="Population", | ||
) | ||
_m | ||
return | ||
|
||
|
||
@app.cell | ||
def __(leafmap_kepler): | ||
_m = leafmap_kepler.Map( | ||
center=[40, -100], zoom=2, height=600, widescreen=False | ||
) | ||
_m | ||
return | ||
|
||
|
||
if __name__ == "__main__": | ||
app.run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters