A Google site, doesnt support arbitrary code. Its limited.

But it looks like a HTML box could be a Google Maps API based map, subject
to making a few changes to your code...

http://support.google.com/sites/bin/answer.py?hl=en&answer=2500646



On Tue, Oct 30, 2012 at 8:31 PM, Open Source GIS
<[email protected]>wrote:

> Hello,
>
> I am currently struggling getting a Google Maps javascript code that i
> have written into a Google Sites. I though this would be easy as they are
> using the same product...no unfortunatley not.
>
> I have created a basic google maps that references a fushion table to give
> it some data and also points on a map. The code looks like this:
>
> <!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=AIzaSyBMkubRIxOa4wACTCjMS0CPLoqHAezFVR0&sensor=false
> ">
> </script>
> <script type="text/javascript">
> var map = null;
> function initialize() {
>  var myOptions = {
> zoom: 7,
> center: new google.maps.LatLng(52.603047, -1.604003),
>  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: 'Latitude',
> from: '1g1TJN9-M0JSmP2fXpAnSkJ5A2zW6KXxGtW4uI-s'
>  },
> });
>
> layer.setMap(map);
>
> };
> </script>
> </head>
> <body onload="initialize()">
> <div id="map_canvas" style="width:100%; height:100%">
> </div>
> </body>
> </html>
>
> Now unfortunatley, even though the API is registered to the Google Sites
> page it just dosent like it. I would really appreciate a little help with
> getting this map into a google site application. Any advice or guidance
> that people could give would be massivley helpful!
>
> Many Thanks,
>
> Ian Usher
> GIS Consultant
> Open Source GIS
> www.open-source-gis.co.uk
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/k_DBbycPkpUJ.
> 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.
>

-- 
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