I'm writing Javascript code in a Salesforce.com Visualforce page. Unfortunately, Salesforce overrides window.Map with an incompatible map implementation. Is there some way to get back what used to be stored at window.Map?
Asked
Active
Viewed 44 times
1
Praveen Kumar Purushothaman
- 164,888
- 24
- 203
- 252
Ben Dilts
- 10,535
- 16
- 54
- 85
-
1Did you try asking this in [salesforce.se]? Had the same issue. `:D` – Praveen Kumar Purushothaman Jun 02 '16 at 17:31
1 Answers
0
This has already been answered in a generic context by @Raynos, but you can use an iFrame to recover the original Map:
var iframe = document.createElement('iframe')
document.body.appendChild(iframe)
var _window = iframe.contentWindow
VanillaMap = _window.Map
Community
- 1
- 1
Nick Tomlin
- 28,402
- 11
- 61
- 90