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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Why does an information window open upon map load?

Thread began 4/06/2010 11:27 pm by Bryan Miller | Last modified 4/08/2010 1:51 pm by Jason Byrnes | 770 views | 5 replies |

Bryan Miller

Why does an information window open upon map load?

I have created a map generated from a record set. I am using a 'click' event handler rather than 'mouseover/mouseout' but, for some reason, when my map loads it opens an information window for the first record in the recordset.

How can I prevent this from happening? It causes my map to re-center if I zoom any closer due to the text box opening.

Here is the URL for the site: view_ranges.php

Cheers

-Bryan

Sign in to reply to this post

Jason ByrnesWebAssist

in the google_javascripts/wagmp_map_1.php file, find code similar to the following :

if('address_0_0' == 'address_0_0')
marker_0_0.openInfoWindowHtml(address_0_0.infowindowtext);
}



and delete it, if you have difficulty finding the line referenced, send a copy of the file and will let you know what line numbers.

Sign in to reply to this post

Bryan Miller

Thanks Jason,

Is the point of that code block to automatically open the infobox on record(0)?

For some reason, I don't remember that on my other maps. It would be a nice feature to be able to disable ;-)

-Bryan

Sign in to reply to this post

Jason ByrnesWebAssist

yes, that is the purpose of that code.

If you enable driving directions, the ifo window will not display on load.

Sign in to reply to this post

Bryan Miller

Thanks Jason.

That worked perfectly. I was able to remove the code and now the map responds as expected.

I'd love to see a lot of these options placed into an include file where they can be edited. I've moved about 6 of them into an include file for my maps. Things like resetting map center and zoom level if an address cannot be found, coordinates, mouseover VS click, etc. That would allow changing them in one location rather than the usual 3-4 locations in the code.

Sign in to reply to this post

Jason ByrnesWebAssist

feedback noted.

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