View Full Version : Removal of Info Window - OLD SOLUTIONS not working
nathan125991
05-21-2009, 01:19 PM
I cycled down too. I bought Google Pro Maps today and I'm trying to prevent the infowindow from popping up.
I don't have any extensive .js files associated with your other solutions. It appears that the solutions are scripted in PHP.
What is the PHP method for commenting out the INFO window, or toggle it to OFF until someone hits the peg?
Thanks,
Nathan
Ray Borduin
05-21-2009, 01:33 PM
You could comment out the openInfoWindow() function call in the .js code. It should be very similar to before. Do you have a sample url I could tell you the exact line.
nathan125991
05-21-2009, 02:13 PM
http://www.sierraclassic.com/locations.php
There's only a few lines in the .js file. The other files are written in php.
Also SPRY breaks the heck out of the google map api. I'm having to search for a different tooltip atm.
Ray Borduin
05-21-2009, 02:18 PM
If you look at the code you will see code similar to:
GEvent.addListener(marker_0, 'click', function() {
marker_0.openInfoWindowHtml(address_0.infowindowte xt);
});
if(!fromAddress.enabled || 'address_0' != 'address_0') {
map.setCenter(point, 13);
map.addOverlay(marker_0);
marker_0.openInfoWindowHtml(address_0.infowindowte xt);
}
in the line after the addOverlay line, comment out the openInfoWindowHtml line... like:
GEvent.addListener(marker_0, 'click', function() {
marker_0.openInfoWindowHtml(address_0.infowindowte xt);
});
if(!fromAddress.enabled || 'address_0' != 'address_0') {
map.setCenter(point, 13);
map.addOverlay(marker_0);
// marker_0.openInfoWindowHtml(address_0.infowindowte xt);
}
nathan125991
05-21-2009, 02:33 PM
There are three sections of code with lines like that. I commented the lines you mentioned in all 3 spots. I still get the infobubble.
Ray Borduin
05-21-2009, 02:39 PM
You commented out the wrong ones.... look at my example... you now have:
GEvent.addListener(marker_0, 'click', function() {
// marker_0.openInfoWindowHtml(address_0.infowindowte xt);
});
if(!fromAddress.enabled || 'address_0' != 'address_0') {
map.setCenter(point, 13);
map.addOverlay(marker_0);
marker_0.openInfoWindowHtml(address_0.infowindowte xt);
}
when you should have:
GEvent.addListener(marker_0, 'click', function() {
marker_0.openInfoWindowHtml(address_0.infowindowte xt);
});
if(!fromAddress.enabled || 'address_0' != 'address_0') {
map.setCenter(point, 13);
map.addOverlay(marker_0);
// marker_0.openInfoWindowHtml(address_0.infowindowte xt);
}
nathan125991
05-21-2009, 02:45 PM
THANK YOU THANK YOU THANK YOU.
It worked.
But then again, you knew it would. Thank you.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.