I am not well conversant with most of the web technologies involved in
this. I thank you upfront for your patience.
1) I have a situation where I display search results (typically 10
entries per page). I provide a link at the bottom of each entry to
open google map to show the location (lat-long) of the entry. The
display property of the containing DIV is set to none. When the google
map is shown, I set the display property of the containing DIV to
inline.
This works fine, if the display property of the DIV is set to inline
before execution of google api calls. However, if the display
property is set to inline after the api calls the maps do not render
correctly, after the first click.
I have given 2 links (one where the display is set to inline before
google api call and the other after the calls)
<a href="
http://property.odishagateway.com/maptest/
maphidden1.html">Before api calls</a>
<a href="
http://property.odishagateway.com/maptest/
maphidden.html">After api calls</a>
Why would it not work in the second case?
2) Since I show the map for each entry in a separate DIV, I use a
different instance of the map and infoWindow. Would this be the
correct way of coding this?
Thank for your help