-3

The code looks like:

import folium
map = folium.Map(location=[12.9716,77.5946], zoom_start=1, tiles="Stamen Terrain"

#map.add_child(folium.Marker(location=[12.8,77.2], popup="Hi I am a Marker" , icon=folium.Icon(color='green')))

#map.save("map1.html")

fg1=folium.FeatureGroup(name="My Map") 
fg1.add_child(folium.Marker(location = [38.2,-100.1], popup = "Hey", icon = folium.Icon_color(color='green')))  
map.add_child(fg1) 
map.save("Map1.html")

Below is the stacktrace of the error that I get:

File "map1.py", line 8
fg1=folium.FeatureGroup(name="My Map") 
^
SyntaxError: invalid syntax
sentence
  • 7,017
  • 4
  • 29
  • 36

1 Answers1

2

You are missing a closing bracket in the line

folium.Map(location=[12.9716,77.5946], zoom_start=1, tiles="Stamen Terrain"
pecey
  • 648
  • 5
  • 13