Skip to content

Commit

Permalink
Fix indentation in GeoJSON docs
Browse files Browse the repository at this point in the history
Signed-off-by: martinRenou <[email protected]>
  • Loading branch information
martinRenou committed Jul 29, 2020
1 parent 9900528 commit c0db019
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/source/api_reference/geo_json.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ Example
from ipyleaflet import Map, GeoJSON

if not os.path.exists('europe_110.geo.json'):
url = 'https://github.com/jupyter-widgets/ipyleaflet/raw/master/examples/europe_110.geo.json'
r = requests.get(url)
with open('europe_110.geo.json', 'w') as f:
f.write(r.content.decode("utf-8"))
url = 'https://github.com/jupyter-widgets/ipyleaflet/raw/master/examples/europe_110.geo.json'
r = requests.get(url)
with open('europe_110.geo.json', 'w') as f:
f.write(r.content.decode("utf-8"))

with open('europe_110.geo.json', 'r') as f:
data = json.load(f)
data = json.load(f)

def random_color(feature):
return {
Expand Down

0 comments on commit c0db019

Please sign in to comment.