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
  • 160,666
  • 24
  • 190
  • 242
Ben Dilts
  • 10,127
  • 16
  • 51
  • 84

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
  • 27,264
  • 11
  • 59
  • 87