objectivehtml / Google-Map-for-ExpressionEngine

The simplest way to implement a map in a ExpressionEngine template. Combine the exp:channel:entries tag with Google Maps v3.0 to create very dynamic (or static) map sets.
http://objectivehtml.com/plugins/google-maps-for-expressionengine
15 stars 6 forks source link

Fix for "Map not displaying properly?" #2

Closed bjornbjorn closed 12 years ago

bjornbjorn commented 12 years ago

...initiating google maps when the div is not visible, and EE will output the JS of the Google Maps fieldtype even before it's selected .. so we need to wait until the gmap preview div is visible before we init the map)

bjornbjorn commented 12 years ago

I did a quick fix for this but haven't tested extensively, however you'll see the concept behind the fix .. seems to work fine on my install at least :-)