1

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?

Praveen Kumar Purushothaman
  • 164,888
  • 24
  • 203
  • 252
Ben Dilts
  • 10,535
  • 16
  • 54
  • 85

1 Answers1

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