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)
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