Google map in Fusion

5 messages Options
Embed this post
Permalink
Fusion Newbye

Google map in Fusion

Reply Threaded More More options
Print post
Permalink
I've read that fusion use also code of openlayer so is it possible to use google maps and api keys  in Fusion apps?

Thanks in advance

_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Paul Spencer-2

Re: Google map in Fusion

Reply Threaded More More options
Print post
Permalink
Theoretically its possible but it is not directly available at this  
time.  If you are handy with firebug, you can poke around inside  
Fusion at runtime to see how to get a hold of the openlayers Map  
instance and directly do anything OpenLayers-y with it.  The ability  
to work more directly with OpenLayers, and to include other Layer  
types through the ApplicationDefinition will likely be in the next  
release.

Cheers

Paul

On 21-May-08, at 2:15 PM, Fusion Newbye wrote:

> I've read that fusion use also code of openlayer so is it possible  
> to use google maps and api keys  in Fusion apps?
>
> Thanks in advance
> _______________________________________________
> fusion-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-users


__________________________________________

    Paul Spencer
    Chief Technology Officer
    DM Solutions Group Inc
    http://www.dmsolutions.ca/

_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Fusion Newbye

Re: Google map in Fusion

Reply Threaded More More options
Print post
Permalink
In open layers we add google maps in this way:

<script src='http://maps.google.com/maps?file=api&amp;v=2&amp;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.LayerSwitche
r());
           
            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?

_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Paul Spencer-2

Re: Google map in Fusion

Reply Threaded More More options
Print post
Permalink
You cannot do that with the current version of fusion.

Cheers

Paul

On 22-May-08, at 1:36 PM, Fusion Newbye wrote:

> In open layers we add google maps in this way:
>
> <script src='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.LayerSwitche
> r());
>
>             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?
> _______________________________________________
> fusion-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-users


__________________________________________

    Paul Spencer
    Chief Technology Officer
    DM Solutions Group Inc
    http://www.dmsolutions.ca/

_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Fusion Newbye

Re: Google map in Fusion

Reply Threaded More More options
Print post
Permalink
Can be embedded google maps with the new release of fusion??

regards

2008/5/22 Paul Spencer <[hidden email]>
You cannot do that with the current version of fusion.

Cheers

Paul


On 22-May-08, at 1:36 PM, Fusion Newbye wrote:

In open layers we add google maps in this way:

<script src='http://maps.google.com/maps?file=api&amp;v=2&amp;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.LayerSwitche
r());

           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?
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users


__________________________________________

  Paul Spencer
  Chief Technology Officer
  DM Solutions Group Inc
  http://www.dmsolutions.ca/



_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users