Closed xukegithub closed 1 year ago
layer.py
def bindPopup(self, content, options=None): js = '{layerName}.bindPopup("{content}"'.format( layerName=self._layerName, content=content) if options: js += ', {options}'.format(self._stringifyForJs(options)) js += ')' self.runJavaScript(js) return self
when called marker.bindPopup(' ', {'autoPan': False}) , then throw js += ', {options}'.format(self._stringifyForJs(options)) KeyError: 'options'
marker.bindPopup(' ', {'autoPan': False})
js += ', {options}'.format(options=self._stringifyForJs(options)) is ok
js += ', {options}'.format(options=self._stringifyForJs(options))
Hey, thanks for the bug report! Never used the options kwarg there. I'll fix this!
thanks
layer.py
when called
marker.bindPopup(' ', {'autoPan': False})
, then throw js += ', {options}'.format(self._stringifyForJs(options)) KeyError: 'options'js += ', {options}'.format(options=self._stringifyForJs(options))
is ok