autmatically displaying tooltip information
I would like the tooltip containing my clients address to display by default on the map, rather then having to click on the flag. How would I accomplish that?
I would like the tooltip containing my clients address to display by default on the map, rather then having to click on the flag. How would I accomplish that?
Do you have a sample page? That would allow me to figure out the exact line of code to update in order to solve the problem.
Can I PM or email it to you? At the moment it is behind a secure folder login, and I don't want to give up the login info for everyone to see. Actually I posted a secondary copy to the site so you can review it
contact2.php
find:
if(!fromAddress.enabled || 'address_0' != 'address_0') {
if('address_0' == 'address_0')
map.setCenter(point, 13);
map.addOverlay(new GTrafficOverlay());
map.addOverlay(marker_0);
}
and change it to:
if('address_0' != 'address_0') {
if('address_0' == 'address_0')
map.setCenter(point, 13);
map.addOverlay(new GTrafficOverlay());
map.addOverlay(marker_0);
}
(I only updated the first part so that it shows the window even when directions are present)
Ray,
Thanks for the code snippet. But I located and replaced the code in the wagmp_map_1.php file and it is still only showing the address window on click. I attached the php file, the code that was replaced starts on line 210
Do I need to clear the cache folder?
Let me see it on a live page. It is hard for me to debug if I have to set up a site for testing.
Ray,
NP, it is the same page as I provided for the directions not displaying:
contact2.php
It appears one more place in the code..
if (!fromAddress.enabled || 'address_0' != 'address_0') {
should be updated to:
if ( 'address_0' != 'address_0') {
I tried your solution, because I too, wanted the marker info to be open when the page initially loads. My client didnt even know it could be clicked. I know this can be done, but it has nothing to do with whether or not directions are displayed. I just want the marker to be clicked open when the page first loads. Can you do that? I tried the solution above and it didnt work. I only had one instance of that code.
Please post a url to the page where you are having trouble and I'll try to give advice on how to fix it.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.