Default descriptive marker "bubble" text to display when map loads?
Permalink Browser Info Environment
Hi,
First, thanks for the great Add-On. This really improves on the default Google Maps functionality.
Now my question: is there a way to get the marker text (the stuff that shows when you click on a marker icon) to display when the map loads? I put my descriptive text into the "description" for the marker in Google Earth, then exported it as KML and added it. It's all displaying as it should, but you have to click on the marker to get the text bubble to display... and I'd really love it to show when the map originally loads.
Is this possible?
Thanks!
- John
First, thanks for the great Add-On. This really improves on the default Google Maps functionality.
Now my question: is there a way to get the marker text (the stuff that shows when you click on a marker icon) to display when the map loads? I put my descriptive text into the "description" for the marker in Google Earth, then exported it as KML and added it. It's all displaying as it should, but you have to click on the marker to get the text bubble to display... and I'd really love it to show when the map originally loads.
Is this possible?
Thanks!
- John
Type: | Discussion |
---|---|
Status: | Archived |
Thanks, Evan!
I've been looking over the Google Earth API... and I see the <gx:balloonVisibility>1</gx:balloonVisibility> element in the KML specification.
My KML file has that... and it's set to a value of "1" which is supposed to mean "On". What I can't figure out is how to "tweak" the Add-On code in order to either (1) get that attribute of the KML file being properly read and translated into turning the map's InfoWindow "on" or (2) hard-code the Google Maps v3 API code into the v3.php file so that the InfoWindow is displayed on the map when it loads, instead of just when the marker is clicked.
I'll keep looking, but if you have any thoughts on what/where I should be looking to make changes, I'd appreciate the help!
Thanks again,
- John
I've been looking over the Google Earth API... and I see the <gx:balloonVisibility>1</gx:balloonVisibility> element in the KML specification.
My KML file has that... and it's set to a value of "1" which is supposed to mean "On". What I can't figure out is how to "tweak" the Add-On code in order to either (1) get that attribute of the KML file being properly read and translated into turning the map's InfoWindow "on" or (2) hard-code the Google Maps v3 API code into the v3.php file so that the InfoWindow is displayed on the map when it loads, instead of just when the marker is clicked.
I'll keep looking, but if you have any thoughts on what/where I should be looking to make changes, I'd appreciate the help!
Thanks again,
- John
I think I'm getting close to what I want... but I can't figure out where to put the code that I need.
Some people on the Google Maps discussion group indicated that I need to use "google.maps.event.trigger" function to "activate the click listener at the very end of your initialization."
Any ideas on that? It looks like I need to pass the trigger function some parameters for the "instance:Object" and the "eventName:string" (http://code.google.com/apis/maps/documentation/javascript/reference... )... but I'm not sure what they are. I'm guessing that I would need to pass it the "marker" object and the "click" event... but since I don't know where/how those are being initiated, I can't see where in the v3.php file I need to place the code.
Any/all help you can provide would be greatly appreciated!
Thanks!
- John
Some people on the Google Maps discussion group indicated that I need to use "google.maps.event.trigger" function to "activate the click listener at the very end of your initialization."
Any ideas on that? It looks like I need to pass the trigger function some parameters for the "instance:Object" and the "eventName:string" (http://code.google.com/apis/maps/documentation/javascript/reference... )... but I'm not sure what they are. I'm guessing that I would need to pass it the "marker" object and the "click" event... but since I don't know where/how those are being initiated, I can't see where in the v3.php file I need to place the code.
Any/all help you can provide would be greatly appreciated!
Thanks!
- John
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.
To re-open this issue, reply to this message.
To re-open this issue, reply to this message.
Glad you're liking the plugin. As for the dialog balloon opening on default, I believe that would require some custom javascript to work with the API to trigger that. Here's a link to the Google Earth API doc regarding balloons, it should point you in the right direction to get those balloons popping. (Well, popping up, that is.)
http://code.google.com/apis/earth/documentation/balloons.html#featu...