Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 6, 2024
1 parent b79dad8 commit 7871235
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/maplibre/countries_filter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,18 @@
"source": [
"m = leafmap.Map(center=[-94.28, 38.45], zoom=3, style=\"streets\")\n",
"source = {\n",
" \"type\": 'vector',\n",
" \"type\": \"vector\",\n",
" \"url\": f\"https://api.maptiler.com/tiles/countries/tiles.json?key={MAPTILER_KEY}\",\n",
"}\n",
"m.add_source(\"statesData\", source)\n",
"layer = {\n",
" 'id': 'US_states',\n",
" 'source': 'statesData',\n",
" 'source-layer': 'administrative',\n",
" 'type': 'fill',\n",
" 'filter': ['all', ['==', 'level', 1], ['==', 'level_0', 'US']],\n",
" 'paint': {\n",
" 'fill-color': [\n",
" \"id\": \"US_states\",\n",
" \"source\": \"statesData\",\n",
" \"source-layer\": \"administrative\",\n",
" \"type\": \"fill\",\n",
" \"filter\": [\"all\", [\"==\", \"level\", 1], [\"==\", \"level_0\", \"US\"]],\n",
" \"paint\": {\n",
" \"fill-color\": [\n",
" \"match\",\n",
" [\"get\", \"name\"],\n",
" [\n",
Expand Down Expand Up @@ -149,8 +149,8 @@
" \"#69A86D\",\n",
" \"rgba(0, 0, 0, 0.5)\",\n",
" ],\n",
" 'fill-opacity': 1,\n",
" 'fill-outline-color': '#000',\n",
" \"fill-opacity\": 1,\n",
" \"fill-outline-color\": \"#000\",\n",
" },\n",
"}\n",
"first_symbol_layer_id = m.find_first_symbol_layer()[\"id\"]\n",
Expand Down

0 comments on commit 7871235

Please sign in to comment.