close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

map not centering in pop up

Thread began 5/31/2013 11:55 am by Jamie | Last modified 6/13/2013 7:23 am by Jamie | 690 views | 14 replies |

Jamie

map not centering in pop up

Hey Jason

Just wondering what I might be doing wrong on this site : http://clients.motley.co.uk/young/

If you scroll to the bottom you'll see a map in the footer which, when clicked, opens a modal window with a wa google map in it. As you can see in the pop up, the map is not centering nor is the full map visible and I dont know how to correct this?

Many thanks

Jamie

Sign in to reply to this post

Jason ByrnesWebAssist

change the code to open the map to:

php:
<a href="#?w=620" rel="map" class="poplight" onClick="window.setTimeout('google.maps.event.trigger(map1,\'resize\');wagmp_map_1_obj.obj.setCenter(wagmp_map_1_obj.points[0])',30);"><img  src="images/main/map.jpg" width="160" height="160" alt="Google Map for Chris Young Opticians"></a>
Sign in to reply to this post

Jamie

Thanks Jason. That's done the trick. I have also tried to stop the info from opening and commented out the line in the js as have done before but the info window still shows ...

Sign in to reply to this post

Jason ByrnesWebAssist

in the isdefault code:
if (isDefault) {
//infowindow.open(map1,marker);
setTimeout("google.maps.event.trigger(wagmp_map_1_obj.markers[" + wagmp_map_1_obj.markers.length + "], 'click')",1000);
//map1.setCenter(point);
}

you have the line to force the click, which opens the info window, change that to:
if (isDefault) {
//infowindow.open(map1,marker);
// setTimeout("google.maps.event.trigger(wagmp_map_1_obj.markers[" + wagmp_map_1_obj.markers.length + "], 'click')",1000);
//map1.setCenter(point);
}

Sign in to reply to this post

Jamie

thanks Jason :)

have a great weekend

Sign in to reply to this post

Jamie

Hey Jason

On this site I have been workign on mod_rewrites which are workign fine. The 'issue' is to do with the map at the bottom of each page.

On a standard page (eg http://www.cyoungopticians.co.uk/about.php the pop up map works fine and displays the map itself.

But the problem comes when on a dynamic page which has had mod_rewrite applied to it (eg http://www.cyoungopticians.co.uk/s6/spectacle_frames.php

Its obviously a path thing but for the life of me cant see what is stopping this one thing from working.

Many thanks

Jamie

Sign in to reply to this post

Jason ByrnesWebAssist

try adding a base tag just after the opening <head> tag:

<base href="http://www.cyoungopticians.co.uk/" />

Sign in to reply to this post

Jamie

Thank you

Sign in to reply to this post

Jamie

I've added the tag to the pages with the tabbed panels, and it was all working fine... but now I have lost the map from the pop up on every page...

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post
loading

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...