update flag name
@@ -26,7 +26,7 @@ class Map(Base):
def __add(self, name, attr, value,
is_roam=True,
maptype='china',
- show_legend_symbol=True,
+ is_show_mapsymbol=True,
**kwargs):
"""
@@ -42,7 +42,7 @@ class Map(Base):
If either zooming or translating is wanted,
it can be set to 'scale' or 'move'. Otherwise, set it to be true
to enable both.
- :param show_legend_symbol:
+ :param is_show_mapsymbol:
Show or hide legend symbol in the map. Default to show a red dot.
False to hide it.
:param maptype:
@@ -66,7 +66,7 @@ class Map(Base):
"mapType": maptype,
"data": _data,
"roam": is_roam,
- "showLegendSymbol": show_legend_symbol
+ "showLegendSymbol": is_show_mapsymbol
})
name_in_pinyin = CITY_NAME_PINYIN_MAP.get(maptype, maptype)
self._js_dependencies.add(name_in_pinyin)
