You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, Thanks for your great work. it helps me a lot.
I just found a problem when creating MAP with options, it did nothing.
I guess the problem is that options in jsObject has single-quote.
So I tried modifying below, it seems to work.
(FYI : I'm not good at javascript and python)
Have a good day
def _initJs(self):
jsObject = 'L.map("map"'
if self.options:
jsObject += ', {options}'.format(options=self._stringifyForJs(self.options))
jsObject += ')'
# Unless remove single quote, options doesn't work
jsObject = jsObject.replace('\'', '')
print(jsObject)
self._createJsObject(jsObject)
The text was updated successfully, but these errors were encountered:
Hi, @samhattangady
First of all, Thanks for your great work. it helps me a lot.
I just found a problem when creating MAP with options, it did nothing.
I guess the problem is that options in jsObject has single-quote.
So I tried modifying below, it seems to work.
(FYI : I'm not good at javascript and python)
Have a good day
The text was updated successfully, but these errors were encountered: