close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

How to link to map location

Thread began 2/20/2012 1:27 pm by Dennis | Last modified 3/02/2012 11:49 am by Dennis | 962 views | 5 replies

Ray BorduinWebAssist

I'll update the next version to automatically close info windows.

To update your current code you would have to change the include file wagmp_map_1.php

update the function:

function openWindowByAddressFunc(value,attname)  {
var point = this.getPointByAddress(value,attname);
point.infowindow.open(this.obj,point.marker);
}


to:

function openWindowByAddressFunc(value,attname)  {
var point = this.getPointByAddress(value,attname);
for (var x=0; x < this.infowindows.length; x++) {
this.infowindows[x].close();
}
point.infowindow.open(this.obj,point.marker);
}



and then you would have to update in the addMarker function:

google.maps.event.addListener(marker, 'click', function() {
infowindow.open(map1,marker);



to:

google.maps.event.addListener(marker, 'click', function() {
for (var x=0; x < wagmp_map_1_obj.infowindows.length; x++) {
wagmp_map_1_obj.infowindows[x].close();
}
infowindow.open(map1,marker);



Custom markers from the database isn't directly supported, but can be done by hand coding. Just update the code where the info window images are specified to be dynamic. There is no way to do that through the ui directly currently.

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