Tooltips

445 views
Skip to first unread message

Chandra Miller

unread,
Jun 3, 2010, 11:25:53 AM6/3/10
to Google Maps JavaScript API v3
I have sussessfully created a KML file to my Google Map. I would like
all the points to have tooltips when you mouse over them. Is that
something I need to add into the KML file or the HTML. There are
about 350 seperate points. What code can I use to get Google maps to
display the placemark name in my KML file?

Chad Killingsworth

unread,
Jun 5, 2010, 7:12:11 PM6/5/10
to Google Maps JavaScript API v3
I don't believe you can show data like that on mouse over. You can do
it on mouse click though.

Chad Killingsworth

[A]JumP[S]

unread,
Jun 9, 2010, 6:48:22 AM6/9/10
to Google Maps JavaScript API v3
I'm very new to these Google Map API but I learn a lot by reading many
discussions in this.
But now I also have this same question.

My situation here is that I just mark the location using Google Earth.
I didn't write any description. The Google Earth will display that
mark with label.
But when I export this as KML and uploaded it to play with my Google
MAP.
It's did not display tooltips or label. U must click the marker to
make it display just a simple header

So what I want to ask is that if there is any way that we can play
with those marker from KMLLayer?
1. I want to adjust those marker just to display tooltip only.
(normally it will have if we create new google.maps.Marker({title:
"what to display in tooltips", ...}))
2. If it possible to just display some point of the kml only (like if
i have many category of points.
I only want to display some of them)

What I'm thinking right now is to try parse the kml file myself and
just plot it manually
(My kml is not that big yet) So any suggestion would be nice.


-----------------
On Jun 3, 10:25 pm, Chandra Miller <chandra_dr...@yahoo.com> wrote:
> I have sussessfully created aKMLfile to my Google Map.  I would like
> all the points to havetooltipswhen you mouse over them.  Is that
> something I need to add into theKMLfile or the HTML.  There are

Rossko

unread,
Jun 9, 2010, 7:02:19 AM6/9/10
to Google Maps JavaScript API v3
> What I'm thinking right now is to try parse the kml file myself and
> just plot it manually

If you want that level of control for tooltips, that is what you must
do.

> 2. If it possible to just display some point of the kml only (like if
> i have many category of points.

You may find that easier to manage if your categories are held in
seperate KML files, there are examples of that in this group.
If you must have one KML file, you are back to parsing it yourself.

Hai Pham

unread,
Sep 8, 2011, 2:02:40 AM9/8/11
to google-map...@googlegroups.com
Hi,

I am freshman with Google API3 and have the same problem. I want that the tooltip will active when the mouse comes. That is something like this page: http://tidesandcurrents.noaa.gov/sltrends/sltrends.shtml

I have my own maker layer created using fusiontable. The script looks like following. Could someone help me this problem? Thank you very much.

=================================================
</script>
<script type="text/javascript">
  function initialize() {
        var btr = new google.maps.LatLng(30.43741316, -91.1417728);
            map = new google.maps.Map(document.getElementById('map_canvas'), {
              center: btr,
              zoom: 12,
              mapTypeId: 'roadmap'
            });
            var layer = new google.maps.FusionTablesLayer({
              query: {
                select: 'Lat',
                from: '1402288'
              },
            });
            layer.setMap(map);
  }
</script>
============================================================

geoco...@gmail.com

unread,
Sep 8, 2011, 6:48:25 AM9/8/11
to Google Maps JavaScript API v3
On Sep 8, 2:02 am, Hai Pham <pvh1...@gmail.com> wrote:
> Hi,
>
> I am freshman with Google API3 and have the same problem. I want that the
> tooltip will active when the mouse comes. That is something like this page:

http://tidesandcurrents.noaa.gov/sltrends/sltrends.shtml

That map uses "normal" google maps markers, you can set the "title"
property on them and it appears as a tooltip.

>
> I have my own maker layer created using fusiontable. The script looks like
> following. Could someone help me this problem?

FusionTablesLayers don't (at least currently) support tooltips (like
KmlLayers, the original topic of this thread). Depending on how many
markers you have (if you don't have too many, right now there are only
two), you could use GViz to query the Fusion Table and add "normal"
markers with tooltips.

-- Larry
Reply all
Reply to author
Forward
0 new messages