Hi Rob,

Many Thanks for that. That has worked an absolute treat, im now
getting infowindows when clicking the datasets within the google maps
window.

Thanks again,

Ian Usher
Open Source GIS Consultant
www.open-source-gis.co.uk

On Dec 21, 8:06 am, Satpack Travel <[email protected]> wrote:
> Hi.
>
> I struggled with something similar. I think if you change the line:
>
> select: 'AnotherTest',
>
> to:
>
> select: 'Latitude',
>
> you'll find it pulls up all the info in the FT for that point. If you
> only want it to select certain fields you have to edit the FT
> infowindow set up (under Visualise / Table / Configure Info Window /
> Custom). To get your icons to show as the type in the column 'Icon'
> you need to change Visualise / Table / Configure Styles and look for
> icon / columns and select the right columns).
>
> An example we did of pulling lots of info from Fusion Tables but using
> our own Infowindows (to have tabs so we can hold more info) is 
> at:www.mukaranga.com/map.htmlif you want to look at that code.
>
> Hope this helps.
>
> Rob
>
> On Dec 20, 3:54 pm, Open Source GIS <[email protected]> wrote:
>
>
>
> > Hi,
>
> > Ive just started investigating the google fusion windows as i think
> > this will make life easier, expecially being able to get any spatial
> > data into google maps just by simply call the feature set along with
> > the user id.
>
> > Ive desinged a bog standard google map page that simply call the
> > selected fusion table as shown below:
>
> > <!DOCTYPE html>
> > <html>
> > <head>
> > <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
> > <style type="text/css">
> >         html { height: 100% }
> >         body { height: 100%; margin: 0; padding: 0 }
> >         #map_canvas { height: 100% }
> > </style>
> > <script type="text/javascript"
> >         src="http://maps.googleapis.com/maps/api/js?
> > key=YOUR_API_KEY&sensor=false">
> > </script>
> > <script type="text/javascript">
> >         var map = null;
> >         function initialize() {
> >         var myOptions = {
> >         zoom: 12,
> >         center: new google.maps.LatLng(53.193309, -1.259932),
> >         mapTypeControl: true,
> >         mapTypeCOntrolOptions: {style:
> >         google.maps.MapTypeControlStyle.DROPDOWN_MENU},
> >         navigationControl: true,
> >         mapTypeId: google.maps.MapTypeId.ROADMAP
> >         }
>
> >         map = new google.maps.Map(document.getElementById("map_canvas"),
> > myOptions);
>
> >         var layer = new google.maps.FusionTablesLayer({
> >         query: {
> >         select: 'AnotherTest',
> >         from: '2462761'
> >         },
> >         });
>
> >         layer.setMap(map);
>
> >         };
> > </script>
> > </head>
> > <body onload="initialize()">
> >         <div id="map_canvas" style="width:100%; height:100%">
> > </div>
> > </body>
> > </html>
>
> > Im now trying to add a selection of the fields stored in the fusion
> > table to the map, but cant work out how and where to place the
> > infowindow command into the script above.
>
> > Has anybody had any dealing with this before, and if so, would they
> > mind just informing me of where this "infowindow" script needs to be
> > placed?
>
> > Many Thanks in advance
>
> > Ian Usher
> > Open Source GIS Consultantwww.open-source-gis.co.uk- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to