close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Google Map Display In Collapsible Panel

Thread began 7/27/2012 10:55 am by Dennis | Last modified 8/01/2012 9:36 am by Dennis | 3709 views | 4 replies |

Dennis

Google Map Display In Collapsible Panel

Hi,

When placed in a Collapsible Panel, my map is not displayed correctly.

You can see it here: 2012_National-Test.php#CollapsiblePanel23

Before placing it into the Collapsible Panel the Map appeared correctly.

----
Also, elsewhere on the page, I have links to places in the map (in the Hotels panel) how can I get those links to open the panel?

Thanks,
Dennis

Sign in to reply to this post

Jason ByrnesWebAssist

loos like your collapsable panel uses onclick events to open the panels:

php:
<li><a href="#CollapsiblePanel23" onclick="cpg2.openPanel(0);">Map</a></li>



add another onlick event to resize the map:

php:
<li><a href="#CollapsiblePanel23" onclick="cpg2.openPanel(0);window.setTimeout('google.maps.event.trigger(map,\'resize\');wagmp_map_1_obj.obj.setCenter(wagmp_map_1_obj.points[0])',30);">Map</a></li>




to open the panel from your address links, add the same "cpg2.openPanel(0);" code to the onclick event of the links.

Sign in to reply to this post

Dennis

Thanks Jason,

That worked great for the onclick link you found on the page.

I also have the link formed by the collapsible panel code…

php:
<div id="CollapsiblePanel23" class="CollapsiblePanel">

   <div class="CollapsiblePanelTab" tabindex="0">Map</div>


that I changed to...

php:
<div id="CollapsiblePanel23" class="CollapsiblePanel">

   <div class="CollapsiblePanelTab" tabindex="0"><a onclick="window.setTimeout('google.maps.event.trigger(map,\'resize\');wagmp_map_1_obj.obj.setCenter(wagmp_map_1_obj.points[0])',30);">Map</a></div>


and this seems to work, but I wanted to ask if this is valid. It can be found in the source code around line 2383.

Also throughout the page I have numerous links that link to particular locations on the map such as…

php:
<a href="#CollapsiblePanel23" onClick="cpg2.openPanel(0);wagmp_map_1_obj.openWindowByAddress('10000 West O\'Hare');">Locate on map</a>


How would I modify it to display the map correctly? In the source code this is located around line 2469.

Dennis

Sign in to reply to this post

Jason ByrnesWebAssist

yes, that code is valid for the div onclick.

the code for the links would be:

php:
<a href="#CollapsiblePanel23" onClick="cpg2.openPanel(0);window.setTimeout('google.maps.event.trigger(map,\'resize\');wagmp_map_1_obj.openWindowByAddress(\'10000 West O\\\'Hare\')',30);">Locate on map</a>
Sign in to reply to this post

Dennis

That did the trick

Great, thanks again Jason.

Dennis

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...