It has been reported on pt.wiki that VisualEditor has freezing while loading on several city articles, and after some tests, I found out that this error is due to Template:Mapa de localização (our map render) that is loaded by Template:Info/Assentamento (our settlement infobox). What makes it stranger is that upon freezing, if you click "Read" and then "Edit", VisualEditor loads normally.
Steps to Reproduce: Open any city article, like Buenos Aires, and click "Edit".
Actual Results: VisualEditor throws (Uncaught TypeError: map.remove is not a function) and failed to finish loading the page for users to edit.
VM82:359 Uncaught TypeError: map.remove is not a function at <anonymous>:359:1125 at fire (load.php?lang=zh-cn&modules=jquery&skin=vector&version=tqh7e:46) at Object.fireWith (load.php?lang=zh-cn&modules=jquery&skin=vector&version=tqh7e:47) at Object.fire (<anonymous>:383:482) at VeUiMWNoticesPopupTool.ve.ui.MWNoticesPopupTool.setNotices (<anonymous>:973:275) at VeInitMwDesktopArticleTarget.ve.init.mw.DesktopArticleTarget.surfaceReady (<anonymous>:15:410) at <anonymous>:1215:294
Expected Results: Loading completion, letting users free for editing.