Way to re-initialize the maps in jQuery function?
-
Hey there!
We are desperately finding the right Maps plugin for a looming project deadline, and this one by far looks the best! Have a quick usage question though.
We hide the map div wrapping before the user clicks to see it. When the “show”function is run, we see the map holder, and markers, but do not see the map itself. We DO see it though when we either resize the browser, or have it shown by default.
Is there a way to target the Easy Google Map maps via jQuery, in order to force a resize or initialize? Tried something like:
jQuery('.store_sort a.store_sort_map').on('click', function () { google.maps.event.trigger(map, 'resize'); }
This should work, but don’t know how to define the “map” in the second line. Any ideas?
Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Way to re-initialize the maps in jQuery function?’ is closed to new replies.