Google map in Fusion

View: New views
5 Messages — Rating Filter:   Alert me  

Google map in Fusion

by Fusion Newbye :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
fusion-users@...
http://lists.osgeo.org/mailman/listinfo/fusion-users

Re: Google map in Fusion

by pagameba :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
> fusion-users@...
> 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
fusion-users@...
http://lists.osgeo.org/mailman/listinfo/fusion-users

Re: Google map in Fusion

by Fusion Newbye :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
fusion-users@...
http://lists.osgeo.org/mailman/listinfo/fusion-users

Re: Google map in Fusion

by pagameba :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
> fusion-users@...
> 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
fusion-users@...
http://lists.osgeo.org/mailman/listinfo/fusion-users

Re: Google map in Fusion

by Fusion Newbye :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Can be embedded google maps with the new release of fusion??

regards

2008/5/22 Paul Spencer <pspencer@...>
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
fusion-users@...
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
fusion-users@...
http://lists.osgeo.org/mailman/listinfo/fusion-users
LightInTheBox - Buy quality products at wholesale price!