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

Added typehints to the foliumap.Map init #813

Draft
wants to merge 1,093 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1093 commits
Select commit Hold shift + click to select a range
a1b9896
Updated logo (#517)
giswqs Aug 22, 2023
0568a46
Added get_geometry_type and NLCD 2021 (#521)
giswqs Aug 26, 2023
8091fd2
Add Google Maps API key requirement (#522)
giswqs Aug 27, 2023
d241792
Removed unused control (#523)
giswqs Aug 27, 2023
25734c2
Improved split_map function (#524)
giswqs Aug 29, 2023
07ba486
Enable xarray dataset in add_raster_legacy (#528)
giswqs Aug 31, 2023
7b51aaa
Bump version: 0.23.3 → 0.23.4
giswqs Sep 1, 2023
d099b85
Add v0.23.4 changelog
giswqs Sep 1, 2023
1f641af
Fix netcdf_to_tif to correctly shift longitude when custom 'lon' vari…
jovanovski Sep 1, 2023
cc62b93
Add array_to_image function (#530)
giswqs Sep 3, 2023
4cb9d6e
Add images_to_tiles function (#531)
giswqs Sep 4, 2023
7800127
Bump version: 0.23.4 → 0.24.0
giswqs Sep 5, 2023
80998c5
Update GitHub Actions (#532)
giswqs Sep 5, 2023
7f27184
Add support fot Google Solar API (#534)
giswqs Sep 6, 2023
265435e
Bump version: 0.24.0 → 0.24.1
giswqs Sep 6, 2023
3d5235c
Change tms_to_geotiff to map_tiles_to_geotiff (#536)
giswqs Sep 7, 2023
593e653
Fix MosaicJSON bug in add_stac_layer (#538)
giswqs Sep 11, 2023
285cd71
Bump version: 0.24.1 → 0.24.2
giswqs Sep 11, 2023
9838cfa
Add session header to map tiles download (#541)
giswqs Sep 11, 2023
716fb92
Update opengeos url (#542)
giswqs Sep 11, 2023
87d0a7f
Add changelog script (#544)
giswqs Sep 12, 2023
d80d337
Bump version: 0.24.2 → 0.24.3
giswqs Sep 12, 2023
2d48e6c
Fix basemap issue (#545)
giswqs Sep 12, 2023
6b519de
Bump version: 0.24.3 → 0.24.4
giswqs Sep 12, 2023
5f5fba2
Add zoom_to_layer params to folium
giswqs Sep 14, 2023
c396cd8
Add support for download MS building footprints (#549)
giswqs Sep 14, 2023
bc47d6f
Bump version: 0.24.4 → 0.25.0
giswqs Sep 14, 2023
4426ad2
Add support for downloading google buildings (#550)
giswqs Sep 15, 2023
536c4c5
Bump version: 0.25.0 → 0.25.1
giswqs Sep 15, 2023
17f66b7
Update Google Buildings notebook (#551)
giswqs Sep 15, 2023
6534e61
Add function for convert building csv to vector (#552)
giswqs Sep 16, 2023
feac41f
Add add_ee_layer function (#553)
giswqs Sep 16, 2023
001d5dc
Bump version: 0.25.1 → 0.25.2
giswqs Sep 16, 2023
f38447d
Add widget template (#557)
giswqs Sep 17, 2023
6f00bb3
Update EE dataset link (#558)
giswqs Sep 18, 2023
f32bdc2
Bump version: 0.25.2 → 0.25.3
giswqs Sep 19, 2023
a7af46b
Add support for PMTiles (#560)
giswqs Sep 20, 2023
515fe6e
Add example for visualizing overture pmtiles (#561)
giswqs Sep 20, 2023
1149c9c
Bump version: 0.25.3 → 0.26.0
giswqs Sep 20, 2023
b11e4e3
Add start_server function for pmtiles (#563)
giswqs Sep 22, 2023
0fa5a4c
Add support for PMTiles (#566)
giswqs Sep 23, 2023
5af7a5d
Improve PMTiles functions (#567)
giswqs Sep 24, 2023
c584304
Bump version: 0.26.0 → 0.27.0
giswqs Sep 25, 2023
a76d49b
Add global buildings example (#569)
giswqs Sep 26, 2023
5d9cd0f
Add ipyleaflet support for PMTiles (#575)
giswqs Oct 16, 2023
b6da1ec
Fix numpy.ndarray.interp error (#578)
kongdd Oct 17, 2023
f67bf69
Bump version: 0.27.0 → 0.27.1
giswqs Oct 18, 2023
8ce728d
Update changelog (#579)
giswqs Oct 18, 2023
633ec55
Add some vector functions (#582)
giswqs Oct 26, 2023
1616fd0
Bump version: 0.27.1 → 0.27.2
giswqs Nov 3, 2023
0a3e043
Update gradio example (#584)
giswqs Nov 3, 2023
1f9af2b
Add GDAL and OpenFileGDB functions (#585)
giswqs Nov 4, 2023
099ca2f
Add df_to_gdf function (#586)
giswqs Nov 5, 2023
e1b83fe
Add mbtiles and pmtiles functions (#587)
giswqs Nov 6, 2023
c967575
Add support for lonboard (#588)
giswqs Nov 6, 2023
42c496c
Bump version: 0.27.2 → 0.28.0
giswqs Nov 6, 2023
5210fee
Update changelog for v0.28.0 (#589)
giswqs Nov 6, 2023
0ece5f8
Fix link typo
giswqs Nov 6, 2023
9f1b089
Update notebook 83 (#590)
giswqs Nov 6, 2023
fb6bea2
Fix gdal driver error (#591)
giswqs Nov 8, 2023
d80b436
Fix folium notebook error (#592)
giswqs Nov 8, 2023
b398dbe
Bump version: 0.28.0 → 0.28.1
giswqs Nov 8, 2023
418fa71
Update changelog for v0.28.1 (#593)
giswqs Nov 8, 2023
759a049
Add vector_to_parquet function (#598)
giswqs Nov 11, 2023
79b8e4a
Add support for reading parquet files (#599)
giswqs Nov 12, 2023
ada89b1
Add streamlit support for lonboard (#600)
giswqs Nov 12, 2023
5dfb16b
Add color schemes for visualizing vector data (#601)
giswqs Nov 13, 2023
93dbe54
Bump version: 0.28.1 → 0.29.0
giswqs Nov 13, 2023
a44d4c4
Update changelog for v0.29.0 (#602)
giswqs Nov 13, 2023
f6c08f0
Update notebook 84 (#603)
giswqs Nov 13, 2023
29d58ca
Update NWI legend (#604)
giswqs Nov 13, 2023
e8344e0
Add plot functions (#609)
giswqs Nov 16, 2023
52934bd
Bump version: 0.29.0 → 0.29.1
giswqs Nov 16, 2023
59cbcd1
Add wms legend method to Map class (#608)
JJFlorian Nov 18, 2023
c2b7a2a
Update GitHub Actions to Python 3.11 (#612)
giswqs Nov 18, 2023
865fd37
Add tooltip for PMTiles (#613)
giswqs Nov 20, 2023
e40906f
Bump version: 0.29.1 → 0.29.2
giswqs Nov 21, 2023
38ef18b
Update changelog for v0.29.2 (#614)
giswqs Nov 21, 2023
cf44121
Add default style for rendering PMTiles (#617)
giswqs Nov 26, 2023
5379e0c
Bump version: 0.29.2 → 0.29.3
giswqs Nov 27, 2023
36d23ad
Update changelog for v0.29.3 (#618)
giswqs Nov 27, 2023
ea1d6a6
Add functions for searching and downloading GEDI data (#619)
giswqs Nov 28, 2023
634c092
Clean up GEDI notebook
giswqs Nov 28, 2023
9231256
Bump version: 0.29.3 → 0.29.4
giswqs Nov 28, 2023
2590604
Update GitHub env variables
giswqs Nov 28, 2023
a2546e8
Skip plotly notebook in mkdocs
giswqs Nov 29, 2023
1770dee
Fix basemap visibility bug (#622)
giswqs Nov 29, 2023
20aea08
Add support for visualizing GEDI data (#624)
giswqs Nov 30, 2023
f516a42
Bump version: 0.29.4 → 0.29.5
giswqs Nov 30, 2023
e231244
Add lonboard to Dockerfile
giswqs Nov 30, 2023
59661a3
Add font size option for circle marker (#628)
giswqs Dec 4, 2023
41b7892
Add GEDI subsetting and add_markers functions (#630)
giswqs Dec 8, 2023
118d54c
Bump version: 0.29.5 → 0.29.6
giswqs Dec 8, 2023
eca9208
Update changelog (#634)
giswqs Dec 8, 2023
1b07cbd
Update Colab badge link (#635)
giswqs Dec 8, 2023
9d12386
Update GEDI notebook example (#637)
giswqs Dec 8, 2023
cbbb32c
Add actinia notebook (#573)
neteler Dec 8, 2023
dd2bc5a
Fix folium pmtiles bug (#641)
giswqs Dec 15, 2023
e0348a5
Bump version: 0.29.6 → 0.29.7
giswqs Dec 15, 2023
d360f6a
Fix PMTiles metadata bug (#643)
giswqs Dec 17, 2023
35362ab
Fixed namespace and event handling issue with PMTiles (#645)
prusswan Dec 20, 2023
2b3fac9
Bump version: 0.29.7 → 0.29.8
giswqs Dec 20, 2023
95f59fa
Update changelog for v0.29.8 (#646)
giswqs Dec 20, 2023
c27de81
Improve folium legend position docstring (#647)
giswqs Dec 20, 2023
71eb586
Add support for downloading NASA Earth data (#648)
giswqs Dec 22, 2023
3d269d9
Add support for searching NASA data interactively (#649)
giswqs Dec 23, 2023
ef702b7
Fix docs build error
giswqs Dec 23, 2023
43c56cb
Add support for visualizing in-memory raster (#651)
giswqs Dec 24, 2023
1e640ce
Bump version: 0.29.8 → 0.30.0
giswqs Dec 24, 2023
8f6082c
Update changelog for v0.30.0 (#652)
giswqs Dec 24, 2023
ec19f04
Improve array_to_image function (#653)
giswqs Dec 25, 2023
cafd0cc
87_actinia.ipynb: simplify installation of actinia_python_client (#655)
neteler Dec 28, 2023
72525e3
Modify add_velocity to support custom color list (#654)
shailesh-stha Dec 29, 2023
b9d53ef
Bump version: 0.30.0 → 0.30.1
giswqs Jan 11, 2024
cb48ba8
Update notebooks (#657)
giswqs Jan 11, 2024
2c04676
Fix array_to_image bug (#660)
giswqs Jan 15, 2024
727f4db
Update GitHub Action versions (#669)
giswqs Feb 6, 2024
e913bbd
Bump localtileserver>=0.10.0 (#666)
banesullivan Feb 6, 2024
ceae595
Add get_root param to stac_client (#564)
giswqs Feb 6, 2024
53595e8
Remove support for JupyterLite (#671)
giswqs Feb 6, 2024
e35580a
Bump version: 0.30.1 → 0.31.0
giswqs Feb 6, 2024
5ef95b3
Update changelog for v0.31.0 (#672)
giswqs Feb 6, 2024
963f0cc
Fix add raster colormap bug (#674)
giswqs Feb 8, 2024
e35e0a7
Bump version: 0.31.0 → 0.31.1
giswqs Feb 8, 2024
badf053
Improve the add_raster method (#675)
giswqs Feb 12, 2024
18f0da9
Add xarray support for add_raster (#678)
giswqs Feb 12, 2024
2442b1f
Get crs and transform from xarray rio accessor in `array_to_memory_fi…
lopezvoliver Feb 13, 2024
6370630
Layers as xarray.DataArray in split_map (ipyleaflet Map) (#681)
lopezvoliver Feb 14, 2024
c5b55ae
Bump version: 0.31.1 → 0.31.2
giswqs Feb 14, 2024
80fe740
Update changelog (#683)
giswqs Feb 14, 2024
b613497
Add split map example (#684)
giswqs Feb 14, 2024
35c6737
Add pre-commit hooks (#686)
giswqs Feb 19, 2024
9264469
Fix raster pixel inspector bug (#689)
giswqs Feb 21, 2024
c5c0d34
Update notebook examples (#690)
giswqs Feb 21, 2024
c808f05
Bump version: 0.31.2 → 0.31.3
giswqs Feb 21, 2024
73548bc
Fix deckgl compute_view bug (#693)
giswqs Feb 22, 2024
1b483db
Add more badges and update notebook (#694)
giswqs Feb 22, 2024
98077c0
Fix notebook 88 error (#696)
giswqs Mar 1, 2024
605cec7
Add testing for Python 3.12 (#698)
giswqs Mar 4, 2024
c3126e4
Bump version: 0.31.3 → 0.31.4
giswqs Mar 4, 2024
f89699a
Fix lonboard zoom to layer bug (#700)
giswqs Mar 5, 2024
dd2da39
Bump version: 0.31.4 → 0.31.5
giswqs Mar 5, 2024
8e30645
Allow to send options directly as str for vector tiles (#702)
lopezvoliver Mar 13, 2024
3b6f130
Improve vector tile layer arguments (#703)
lopezvoliver Mar 18, 2024
dae2c08
Fix docs build error (#704)
giswqs Mar 18, 2024
c0490d9
[pre-commit.ci] pre-commit autoupdate (#705)
pre-commit-ci[bot] Mar 19, 2024
3ae2a8a
Add functions for extracting multi-part archive (#709)
giswqs Mar 30, 2024
e56788f
Bump version: 0.31.5 → 0.31.6
giswqs Mar 30, 2024
57b9b24
Update changelog (#710)
giswqs Mar 30, 2024
496d878
Add tile layer params for split map (#711)
giswqs Apr 2, 2024
5b6e33d
Bump version: 0.31.6 → 0.31.7
giswqs Apr 2, 2024
01d3fff
Update lonboard view_state and pre-commit (#712)
pre-commit-ci[bot] Apr 9, 2024
31b067e
Fix split-map bug (#717)
giswqs Apr 14, 2024
644f65c
Bump version: 0.31.7 → 0.31.8
giswqs Apr 14, 2024
58c3b99
ignore url parameters when checking if file ends with ".pmtiles" (#722)
james-willis Apr 15, 2024
ea519f6
[pre-commit.ci] pre-commit autoupdate (#721)
pre-commit-ci[bot] Apr 15, 2024
20d095e
Improve NASA Earth Data search (#723)
giswqs Apr 16, 2024
67a24ad
Bump version: 0.31.8 → 0.31.9
giswqs Apr 16, 2024
0a83b3e
Fix custom stac bug (#725)
giswqs Apr 16, 2024
2c25d6e
Fix docs build error (#727)
giswqs Apr 19, 2024
3223852
[pre-commit.ci] pre-commit autoupdate (#731)
pre-commit-ci[bot] Apr 30, 2024
c5f63b7
Add maplibregl module (#719)
giswqs May 7, 2024
f32b790
Improve s3 functions (#734)
giswqs May 7, 2024
1016e4b
Fix docs date issue (#735)
giswqs May 7, 2024
ed394c7
Add tile name prefix option to split_raster (#736)
giswqs May 8, 2024
dac2117
Fix checking studio lab bug (#739)
giswqs May 12, 2024
83dbede
Bump version: 0.31.9 → 0.32.0
giswqs May 12, 2024
ec01504
Fix AWS checking for localtileserver (#740)
giswqs May 12, 2024
d35634f
Bump version: 0.32.0 → 0.32.1
giswqs May 12, 2024
c022a49
Fix typos and update plt.get_camp (#742)
giswqs May 17, 2024
87cd727
Fix netcdf_to_tif bug (#743)
giswqs May 24, 2024
1bff9de
[pre-commit.ci] pre-commit autoupdate (#744)
pre-commit-ci[bot] May 27, 2024
c2e35c1
Fix new typos discovered by codespell (#745)
giswqs May 28, 2024
50acea3
Fix transform bug for array to image (#749)
giswqs Jun 6, 2024
8c0ea49
Add GUI for raster data visualization (#750)
giswqs Jun 10, 2024
c345932
Bump version: 0.32.1 → 0.33.0
giswqs Jun 10, 2024
51d3135
Fix pydeck basemap issue (#757)
giswqs Jun 13, 2024
6e6329e
Improve add_vector for the deck module (#758)
giswqs Jun 13, 2024
1834275
Bump version: 0.33.0 → 0.33.1
giswqs Jun 13, 2024
1ac9186
Create dependabot.yml
giswqs Jun 16, 2024
ab28c91
Bump actions/dependency-review-action from 2 to 4 (#763)
dependabot[bot] Jun 16, 2024
d572051
Bump nwtgck/actions-netlify from 2.1 to 3.0 (#761)
dependabot[bot] Jun 16, 2024
47fe0ba
Bump github/codeql-action from 2 to 3 (#759)
dependabot[bot] Jun 16, 2024
fc93cc2
Bump docker/build-push-action from 4 to 5 (#760)
dependabot[bot] Jun 16, 2024
42329a3
Bump docker/login-action from 2 to 3 (#762)
dependabot[bot] Jun 16, 2024
4d3cc98
Improve the maplibre module (#764)
giswqs Jun 17, 2024
4972e80
Bump version: 0.33.1 → 0.33.2
giswqs Jun 17, 2024
54fcf01
Update notebook badges (#765)
giswqs Jun 17, 2024
11b6e0b
Bump docker/metadata-action from 4 to 5 (#768)
dependabot[bot] Jun 17, 2024
1e61e12
Bump docker/build-push-action from 5 to 6 (#767)
dependabot[bot] Jun 17, 2024
424c832
Add maplibre layer interact (#766)
giswqs Jun 18, 2024
417142f
Bump version: 0.33.2 → 0.33.3
giswqs Jun 18, 2024
2b167ab
Add basemap widget (#769)
giswqs Jun 18, 2024
37dd2e0
Bump version: 0.33.3 → 0.33.4
giswqs Jun 18, 2024
6c99304
Add support for MapLibre PMTiles (#770)
giswqs Jun 18, 2024
39a124f
Bump version: 0.33.4 → 0.33.5
giswqs Jun 18, 2024
2d8044a
Add color picker for change layer color interactively (#771)
giswqs Jun 19, 2024
33ce993
Bump version: 0.33.5 → 0.33.6
giswqs Jun 19, 2024
e67c457
Update changelog (#772)
giswqs Jun 19, 2024
327c264
Add more MapLibre example (#773)
giswqs Jun 19, 2024
350a66e
Add more MapLibre examples (#774)
giswqs Jun 20, 2024
70f8e86
Add more MapLibre examples (#775)
giswqs Jun 20, 2024
d63f3ef
Change MapLibre center from lat_lon to lon_lat (#776)
giswqs Jun 20, 2024
e7cc5a0
Bump version: 0.33.6 → 0.34.0
giswqs Jun 20, 2024
3ff7f7a
Add to_streamlit and more examples (#777)
giswqs Jun 21, 2024
72dfb0e
Bump version: 0.34.0 → 0.34.1
giswqs Jun 21, 2024
516be3c
Add 3d terrain style (#779)
giswqs Jun 21, 2024
7d320c4
Bump version: 0.34.1 → 0.34.2
giswqs Jun 21, 2024
6bcc81d
Fix terrain style api key bug (#780)
giswqs Jun 21, 2024
8c248fe
Add get style layers and more examples (#781)
giswqs Jun 22, 2024
edd38af
Add more MapLibre examples (#782)
giswqs Jun 23, 2024
af9d1de
Bump version: 0.34.2 → 0.34.3
giswqs Jun 23, 2024
a21d67f
Add COG and STAC examples for MapLibre (#783)
giswqs Jun 23, 2024
ce5a8d7
Fix MapLibre style bug (#785)
giswqs Jun 23, 2024
b992136
Bump version: 0.34.3 → 0.34.4
giswqs Jun 23, 2024
924102d
Add a Container class (#786)
giswqs Jun 24, 2024
9569dd6
Add add_source function and custom marker notebook (#787)
giswqs Jun 24, 2024
47aac67
Bump version: 0.34.4 → 0.34.5
giswqs Jun 24, 2024
e40d462
Fix add_geojson paint bug (#788)
giswqs Jun 24, 2024
fb477da
Bump version: 0.34.5 → 0.34.6
giswqs Jun 24, 2024
b8a103e
Add draw control notebook example
giswqs Jun 26, 2024
6d514fb
Update changelog (#792)
giswqs Jun 26, 2024
392b732
Bump version: 0.34.6 → 0.34.7
giswqs Jun 26, 2024
be180dd
Add support for html and layer control (#793)
giswqs Jun 28, 2024
f502aa0
Add MapLibre 3d terrain exaggeration (#794)
giswqs Jun 29, 2024
7a6820c
Improve support for adding GEE layers (#795)
giswqs Jun 29, 2024
401e9b6
Bump version: 0.34.7 → 0.35.0
giswqs Jun 29, 2024
40cc779
Improve the MapLibre to_html method (#797)
giswqs Jun 30, 2024
870e445
Fix lonboard map init bug (#799)
giswqs Jun 30, 2024
cd49691
Bump version: 0.35.0 → 0.35.1
giswqs Jun 30, 2024
7519597
Add GitHub API functions (#800)
giswqs Jul 1, 2024
83ae2d9
Add image_to_geotiff function (#802)
giswqs Jul 1, 2024
6bc102b
Bump version: 0.35.1 → 0.35.2
giswqs Jul 1, 2024
462e396
Update osm.py (#803)
spatialthoughts Jul 2, 2024
66240d2
Fix MapLibre to_html bug (#804)
giswqs Jul 2, 2024
84074b4
Bump version: 0.35.2 → 0.35.3
giswqs Jul 2, 2024
c04e053
Add functions for executing MapLibre notebook (#806)
giswqs Jul 3, 2024
206b67f
Bump version: 0.35.3 → 0.35.4
giswqs Jul 3, 2024
adca5d7
Improve MapLibre to_html function (#807)
giswqs Jul 3, 2024
9f3648c
Bump version: 0.35.4 → 0.35.5
giswqs Jul 3, 2024
4344be2
Add MapTiler style function (#808)
giswqs Jul 3, 2024
6c71413
Add script for checking maplibre notebooks (#809)
giswqs Jul 3, 2024
0435647
Bump version: 0.35.5 → 0.35.6
giswqs Jul 3, 2024
edd257d
Fix basemap bug and update changelog
giswqs Jul 3, 2024
948a772
Bump version: 0.35.6 → 0.35.7
giswqs Jul 3, 2024
f398559
Update MapLibre overview page (#810)
giswqs Jul 3, 2024
693f4ee
Added typehints to the foliumap.Map init
JJFlorian Jul 4, 2024
fa63fa3
reintroduced **kwargs to avoid crashes when using ipyleaflet input at…
JJFlorian Jul 4, 2024
183a129
added kwargs to the super init to make sure folium attributes can als…
JJFlorian Jul 4, 2024
e6029f1
added other possible folium parameters to the init of Foliumap.Map
JJFlorian Jul 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
github: giswqs
custom:
- buymeacoffee.com/giswqs
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
contact_links:
- name: Ask questions
url: https://github.com/giswqs/leafmap/discussions/categories/q-a
url: https://github.com/opengeos/leafmap/discussions/categories/q-a
about: Please ask and answer questions here.
- name: Ideas
url: https://github.com/giswqs/leafmap/discussions/categories/ideas
url: https://github.com/opengeos/leafmap/discussions/categories/ideas
about: Please share your ideas here.
- name: Ask questions from the GIS community
url: https://gis.stackexchange.com
Expand Down
19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
41 changes: 0 additions & 41 deletions .github/workflows/build.yml

This file was deleted.

73 changes: 73 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: ["master"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["master"]
schedule:
- cron: "15 20 * * 1"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ["python"]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
20 changes: 20 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Dependency Review Action
#
# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
#
# Source repository: https://github.com/actions/dependency-review-action
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
name: "Dependency Review"
on: [pull_request]

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4
- name: "Dependency Review"
uses: actions/dependency-review-action@v4
16 changes: 16 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Docker Image CI

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ${{ github.repository }}:$(date +%s)
45 changes: 45 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Publish Docker image

on:
release:
types: [published]

jobs:
push_to_registries:
name: Push Docker image to multiple registries
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: |
giswqs/leafmap
ghcr.io/${{ github.repository }}

- name: Build and push Docker images
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
101 changes: 101 additions & 0 deletions .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: docs-build

on:
pull_request:
branches:
- master

jobs:
docs-build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]

defaults:
run:
shell: bash -el {0}

env:
PLANET_API_KEY: ${{ secrets.PLANET_API_KEY }}
USE_FOLIUM: ${{ secrets.USE_FOLIUM }}
USE_MKDOCS: ${{ secrets.USE_MKDOCS }}
HEREMAPS_API_KEY: ${{ secrets.HEREMAPS_API_KEY }}
DP_TOKEN: ${{ secrets.DP_TOKEN }}
MAPBOX_TOKEN: ${{ secrets.MAPBOX_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
GOOGLE_MAPS_API_KEY: ${{ secrets.GOOGLE_MAPS_API_KEY }}
EARTHDATA_USERNAME: ${{ secrets.EARTHDATA_USERNAME }}
EARTHDATA_PASSWORD: ${{ secrets.EARTHDATA_PASSWORD }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: conda-incubator/setup-miniconda@v3
with:
auto-activate-base: true
python-version: ${{ matrix.python-version }}
channels: conda-forge,defaults
channel-priority: true
miniconda-version: latest

- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Testing conda
run: |
conda info
conda list

- name: Install GDAL
run: |
# conda install -c conda-forge mamba --yes
# mamba install -c conda-forge gdal pyproj --yes
pip install --no-cache-dir Cython
pip install --find-links=https://girder.github.io/large_image_wheels --no-cache GDAL

- name: Test GDAL installation
run: |
python -c "from osgeo import gdal"
gdalinfo --version

- name: Install dependencies
run: |
pip install -U pip
pip install --no-cache-dir Cython PyYAML==6.0.1 boto3
pip install -r requirements.txt -r requirements_dev.txt
pip install .

- name: PKG-TEST
run: python -m unittest discover tests/

- name: Install mkdocs
run: |
pip install -r requirements_docs.txt
mkdocs build

- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: "./site"
production-branch: master
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: true
enable-commit-comment: false
overwrites-pull-request-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

- name: Cleanup
if: always()
run: |
echo "Cleaning up resources."
Loading