|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Google map in FusionI'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 FusionTheoretically 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 FusionIn 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 |
|
|
Re: Google map in FusionYou 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 FusionCan 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. _______________________________________________ fusion-users mailing list fusion-users@... http://lists.osgeo.org/mailman/listinfo/fusion-users |
| Free Forum Powered by Nabble | Forum Help |