[fusion-users] Google map in Fusion
    Fusion Newbye 
    fusionnewbye at gmail.com
       
    Thu May 22 13:36:22 EDT 2008
    
    
  
In open layers we add google maps in this way:
<script src='http://maps.google.com/maps?file=api&v=2&key=KEY<http://maps.google.com/maps?file=api&v=2&key=KEY>
'></script>
    <script src="http://openlayers.org/dev/lib/OpenLayers.js"></script>
    <script type="text/javascript">
        var map;
        function init() {
            map = new OpenLayers.Map('map');
            map.addControl(new OpenLayers.Control.LayerSwitcher());
            var gphy = new OpenLayers.Layer.Google(
                "Google Physical",
                {type: G_PHYSICAL_MAP}
            );
            var gmap = new OpenLayers.Layer.Google(
                "Google Streets" // the default
            );
            map.addLayers([gphy, gmap]);
            map.setCenter(new OpenLayers.LonLat(41.078316, 14.332352), 5);
        }
    </script>
Where we have to add that code to use in fusion? in index.html?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/fusion-users/attachments/20080522/93ef0a96/attachment.html
    
    
More information about the fusion-users
mailing list