Fusion 2 - Google & Sheboygan Sample

27 messages Options
Embed this post
Permalink
1 2
Berdel, Brian

Fusion 2 - Google & Sheboygan Sample

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Hello,

I have been trying to test the functionality of adding google maps to the Sheboygan Sample Map in my Appdef but have had no luck…I am able to get google to show up but the Sheboygan data does not. I can see the Sheboygan layers in the legend but when I zoom to sheyboygan the overview map does show that I am in the correct location but there are no layers in the map.  Here is my AppDef.    I have tried using the Tiledmap and regular and setting singletile & isbaselayer to true / false.  Am I not doing something right?  Sheboygan is the same coordinate system as Google.

 

<MapGroup id="sheboygan" xsi:type="MapType">

     

       <Map xsi:type="MapGuideLayerType">

        <Type>MapGuide</Type>

        <SingleTile>true</SingleTile>

        <Extension>

              <ResourceId>Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition</ResourceId>

          <SelectionAsOverlay>true</SelectionAsOverlay>

          <SelectionFormat>PNG</SelectionFormat>

          <SelectionColor>0xFF0000FF</SelectionColor>

        </Extension>

      </Map>

      <Map xsi:type="WMSLayerType">

        <Type>Google</Type>

        <Extension>

          <ResourceId>google</ResourceId>

          <Options>

            <name>GoogleLayer</name>

            <type>G_PHYSICAL_MAP</type>

            <isBaseLayer>true</isBaseLayer>

            <sphericalMercator>false</sphericalMercator>

           

          </Options>

        </Extension>

      </Map>

    </MapGroup>

 

 

 

 

Brian Berdel

Applications Development Manager

 

McMahon Associates, Inc.

425 Commerce Drive, Suite 200

Fort Washington, Pennsylvania 19034

p: 215.283.9444 x 260

f:  215.283.9858

 

http://www.mcmtrans.com/mcm_logo.jpg

   New England  |  Mid-Atlantic  |  Florida




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

Re: Fusion 2 - Google & Sheboygan Sample

Reply Threaded More More options
Print post
Permalink
Can you try putting a
<Options><isBaseLayer>false</isBaseLayer></Options> in your MapGuide
layer <Extension> element. OL only allows one baselayer at a time and I
suspect the MG layer gets set as a baselayer.

Mike

Berdel, Brian wrote:

>
> Hello,
>
> I have been trying to test the functionality of adding google maps to
> the Sheboygan Sample Map in my Appdef but have had no luck…I am able
> to get google to show up but the Sheboygan data does not. I can see
> the Sheboygan layers in the legend but when I zoom to sheyboygan the
> overview map does show that I am in the correct location but there are
> no layers in the map. Here is my AppDef. I have tried using the
> Tiledmap and regular and setting singletile & isbaselayer to true /
> false. Am I not doing something right? Sheboygan is the same
> coordinate system as Google.
>
> <MapGroup id="sheboygan" xsi:type="MapType">
>
> <Map xsi:type="MapGuideLayerType">
>
> <Type>MapGuide</Type>
>
> <SingleTile>true</SingleTile>
>
> <Extension>
>
> <ResourceId>Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition</ResourceId>
>
> <SelectionAsOverlay>true</SelectionAsOverlay>
>
> <SelectionFormat>PNG</SelectionFormat>
>
> <SelectionColor>0xFF0000FF</SelectionColor>
>
> </Extension>
>
> </Map>
>
> <Map xsi:type="WMSLayerType">
>
> <Type>Google</Type>
>
> <Extension>
>
> <ResourceId>google</ResourceId>
>
> <Options>
>
> <name>GoogleLayer</name>
>
> <type>G_PHYSICAL_MAP</type>
>
> <isBaseLayer>true</isBaseLayer>
>
> <sphericalMercator>false</sphericalMercator>
>
> </Options>
>
> </Extension>
>
> </Map>
>
> </MapGroup>
>
> Brian Berdel
>
> Applications Development Manager
>
> McMahon Associates, Inc.
>
> 425 Commerce Drive, Suite 200
>
> Fort Washington, Pennsylvania 19034
>
> p: 215.283.9444 x 260
>
> f: 215.283.9858
>
> [hidden email]
>
> http://www.mcmtrans.com/mcm_logo.jpg <http://www.mcmtrans.com/>
>
> New England | Mid-Atlantic | Florida
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> fusion-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-users
>  

--
   Michael Adair
   Senior Software Architect
   DM Solutions Group Inc.

   Office: (613) 565-5056 x26
   [hidden email]
   http://www.dmsolutions.ca
   http://research.dmsolutions.ca


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

RE: Fusion 2 - Google & Sheboygan Sample

Reply Threaded More More options
Print post
Permalink
Thanks Mike, that actually did work to get them both on.  However I have to zoom in to Sheboygan then turn the layers on and off to get them to appear.  

These are the problems I have noticed:

1. I cannot set the correct extents...The map always starts with a full view of the world...Shouldn't it get set to the extents of my first map?

        I tried setting it with ( as in example)

                <maxExtent>-87.764986990962839,- 87.695521510899724, 43.691398128787782, 43.797520000480347</maxExtent>

        I noticed in Generic.js that there is a comment saying:

        this.mapTag.layerOptions.maxExtent = null;    //maxExtent not allowed on Google layers
       
        So it looks as though this is not correct...

2. Once viewable, the maps do not overlay properly even though they are both the same coordinate system WGS84.

        I tried with Sheboygan and some other data I have in WGS84.

3. You cannot set the maps background color to transparent in studio / maestro / or XML (not that I know of anyway)
        So, there will always be a color blocking the underlying google map if any layer from the top map is on
        This also goes for any maps you may try to overlay


Thanks,

Brian  
-----Original Message-----
From: Mike Adair [mailto:[hidden email]]
Sent: Tuesday, March 31, 2009 4:09 PM
To: Berdel, Brian
Cc: [hidden email]
Subject: Re: [fusion-users] Fusion 2 - Google & Sheboygan Sample

Can you try putting a
<Options><isBaseLayer>false</isBaseLayer></Options> in your MapGuide
layer <Extension> element. OL only allows one baselayer at a time and I
suspect the MG layer gets set as a baselayer.

Mike

Berdel, Brian wrote:

>
> Hello,
>
> I have been trying to test the functionality of adding google maps to
> the Sheboygan Sample Map in my Appdef but have had no luck...I am able
> to get google to show up but the Sheboygan data does not. I can see
> the Sheboygan layers in the legend but when I zoom to sheyboygan the
> overview map does show that I am in the correct location but there are
> no layers in the map. Here is my AppDef. I have tried using the
> Tiledmap and regular and setting singletile & isbaselayer to true /
> false. Am I not doing something right? Sheboygan is the same
> coordinate system as Google.
>
> <MapGroup id="sheboygan" xsi:type="MapType">
>
> <Map xsi:type="MapGuideLayerType">
>
> <Type>MapGuide</Type>
>
> <SingleTile>true</SingleTile>
>
> <Extension>
>
> <ResourceId>Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition</ResourceId>
>
> <SelectionAsOverlay>true</SelectionAsOverlay>
>
> <SelectionFormat>PNG</SelectionFormat>
>
> <SelectionColor>0xFF0000FF</SelectionColor>
>
> </Extension>
>
> </Map>
>
> <Map xsi:type="WMSLayerType">
>
> <Type>Google</Type>
>
> <Extension>
>
> <ResourceId>google</ResourceId>
>
> <Options>
>
> <name>GoogleLayer</name>
>
> <type>G_PHYSICAL_MAP</type>
>
> <isBaseLayer>true</isBaseLayer>
>
> <sphericalMercator>false</sphericalMercator>
>
> </Options>
>
> </Extension>
>
> </Map>
>
> </MapGroup>
>
> Brian Berdel
>
> Applications Development Manager
>
> McMahon Associates, Inc.
>
> 425 Commerce Drive, Suite 200
>
> Fort Washington, Pennsylvania 19034
>
> p: 215.283.9444 x 260
>
> f: 215.283.9858
>
> [hidden email]
>
> http://www.mcmtrans.com/mcm_logo.jpg <http://www.mcmtrans.com/>
>
> New England | Mid-Atlantic | Florida
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> fusion-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-users
>  

--
   Michael Adair
   Senior Software Architect
   DM Solutions Group Inc.

   Office: (613) 565-5056 x26
   [hidden email]
   http://www.dmsolutions.ca
   http://research.dmsolutions.ca


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

Re: Fusion 2 - Google & Sheboygan Sample

Reply Threaded More More options
Print post
Permalink
Google and all the other commercial services are not in EPSG:4326  
(WGS84 LatLong), rather they use a spherical mercator projection.  I'm  
not sure how to configure this in MapGuide.


On 31-Mar-09, at 5:00 PM, Berdel, Brian wrote:

> Thanks Mike, that actually did work to get them both on.  However I  
> have to zoom in to Sheboygan then turn the layers on and off to get  
> them to appear.
>
> These are the problems I have noticed:
>
> 1. I cannot set the correct extents...The map always starts with a  
> full view of the world...Shouldn't it get set to the extents of my  
> first map?
>
> I tried setting it with ( as in example)
>
> <maxExtent>-87.764986990962839,- 87.695521510899724,  
> 43.691398128787782, 43.797520000480347</maxExtent>
>
> I noticed in Generic.js that there is a comment saying:
>
> this.mapTag.layerOptions.maxExtent = null;    //maxExtent not  
> allowed on Google layers
>
> So it looks as though this is not correct...
>
> 2. Once viewable, the maps do not overlay properly even though they  
> are both the same coordinate system WGS84.
>
> I tried with Sheboygan and some other data I have in WGS84.
>
> 3. You cannot set the maps background color to transparent in  
> studio / maestro / or XML (not that I know of anyway)
> So, there will always be a color blocking the underlying google map  
> if any layer from the top map is on
> This also goes for any maps you may try to overlay
>
>
> Thanks,
>
> Brian
> -----Original Message-----
> From: Mike Adair [mailto:[hidden email]]
> Sent: Tuesday, March 31, 2009 4:09 PM
> To: Berdel, Brian
> Cc: [hidden email]
> Subject: Re: [fusion-users] Fusion 2 - Google & Sheboygan Sample
>
> Can you try putting a
> <Options><isBaseLayer>false</isBaseLayer></Options> in your MapGuide
> layer <Extension> element. OL only allows one baselayer at a time  
> and I
> suspect the MG layer gets set as a baselayer.
>
> Mike
>
> Berdel, Brian wrote:
>>
>> Hello,
>>
>> I have been trying to test the functionality of adding google maps to
>> the Sheboygan Sample Map in my Appdef but have had no luck...I am  
>> able
>> to get google to show up but the Sheboygan data does not. I can see
>> the Sheboygan layers in the legend but when I zoom to sheyboygan the
>> overview map does show that I am in the correct location but there  
>> are
>> no layers in the map. Here is my AppDef. I have tried using the
>> Tiledmap and regular and setting singletile & isbaselayer to true /
>> false. Am I not doing something right? Sheboygan is the same
>> coordinate system as Google.
>>
>> <MapGroup id="sheboygan" xsi:type="MapType">
>>
>> <Map xsi:type="MapGuideLayerType">
>>
>> <Type>MapGuide</Type>
>>
>> <SingleTile>true</SingleTile>
>>
>> <Extension>
>>
>> <ResourceId>Library://Samples/Sheboygan/Maps/
>> Sheboygan.MapDefinition</ResourceId>
>>
>> <SelectionAsOverlay>true</SelectionAsOverlay>
>>
>> <SelectionFormat>PNG</SelectionFormat>
>>
>> <SelectionColor>0xFF0000FF</SelectionColor>
>>
>> </Extension>
>>
>> </Map>
>>
>> <Map xsi:type="WMSLayerType">
>>
>> <Type>Google</Type>
>>
>> <Extension>
>>
>> <ResourceId>google</ResourceId>
>>
>> <Options>
>>
>> <name>GoogleLayer</name>
>>
>> <type>G_PHYSICAL_MAP</type>
>>
>> <isBaseLayer>true</isBaseLayer>
>>
>> <sphericalMercator>false</sphericalMercator>
>>
>> </Options>
>>
>> </Extension>
>>
>> </Map>
>>
>> </MapGroup>
>>
>> Brian Berdel
>>
>> Applications Development Manager
>>
>> McMahon Associates, Inc.
>>
>> 425 Commerce Drive, Suite 200
>>
>> Fort Washington, Pennsylvania 19034
>>
>> p: 215.283.9444 x 260
>>
>> f: 215.283.9858
>>
>> [hidden email]
>>
>> http://www.mcmtrans.com/mcm_logo.jpg <http://www.mcmtrans.com/>
>>
>> New England | Mid-Atlantic | Florida
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> fusion-users mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/fusion-users
>>
>
> --
>   Michael Adair
>   Senior Software Architect
>   DM Solutions Group Inc.
>
>   Office: (613) 565-5056 x26
>   [hidden email]
>   http://www.dmsolutions.ca
>   http://research.dmsolutions.ca
>
>
> _______________________________________________
> fusion-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-users


__________________________________________

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

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

Re: Fusion 2 - Google & Sheboygan Sample

Reply Threaded More More options
Print post
Permalink
You have to use Spherical Mercator EPSG:900913 (google in L33T) or
EPSG:3785, but I don't know how to specify that in mapguide, just in
mapserver :-)
Does mapguide reproject on-the-fly?
Percy

Paul Spencer wrote:

> Google and all the other commercial services are not in EPSG:4326 (WGS84
> LatLong), rather they use a spherical mercator projection.  I'm not sure
> how to configure this in MapGuide.
>
>
> On 31-Mar-09, at 5:00 PM, Berdel, Brian wrote:
>
>> Thanks Mike, that actually did work to get them both on.  However I
>> have to zoom in to Sheboygan then turn the layers on and off to get
>> them to appear.
>>
>> These are the problems I have noticed:
>>
>> 1. I cannot set the correct extents...The map always starts with a
>> full view of the world...Shouldn't it get set to the extents of my
>> first map?
>>
>>     I tried setting it with ( as in example)
>>
>>         <maxExtent>-87.764986990962839,- 87.695521510899724,
>> 43.691398128787782, 43.797520000480347</maxExtent>
>>
>>     I noticed in Generic.js that there is a comment saying:
>>
>>     this.mapTag.layerOptions.maxExtent = null;    //maxExtent not
>> allowed on Google layers
>>    
>>     So it looks as though this is not correct...
>>
>> 2. Once viewable, the maps do not overlay properly even though they
>> are both the same coordinate system WGS84.
>>
>>     I tried with Sheboygan and some other data I have in WGS84.
>>
>> 3. You cannot set the maps background color to transparent in studio /
>> maestro / or XML (not that I know of anyway)
>>     So, there will always be a color blocking the underlying google
>> map if any layer from the top map is on
>>     This also goes for any maps you may try to overlay
>>
>>
>> Thanks,
>>
>> Brian
>> -----Original Message-----
>> From: Mike Adair [mailto:[hidden email]]
>> Sent: Tuesday, March 31, 2009 4:09 PM
>> To: Berdel, Brian
>> Cc: [hidden email]
>> Subject: Re: [fusion-users] Fusion 2 - Google & Sheboygan Sample
>>
>> Can you try putting a
>> <Options><isBaseLayer>false</isBaseLayer></Options> in your MapGuide
>> layer <Extension> element. OL only allows one baselayer at a time and I
>> suspect the MG layer gets set as a baselayer.
>>
>> Mike
>>
>> Berdel, Brian wrote:
>>>
>>> Hello,
>>>
>>> I have been trying to test the functionality of adding google maps to
>>> the Sheboygan Sample Map in my Appdef but have had no luck...I am able
>>> to get google to show up but the Sheboygan data does not. I can see
>>> the Sheboygan layers in the legend but when I zoom to sheyboygan the
>>> overview map does show that I am in the correct location but there are
>>> no layers in the map. Here is my AppDef. I have tried using the
>>> Tiledmap and regular and setting singletile & isbaselayer to true /
>>> false. Am I not doing something right? Sheboygan is the same
>>> coordinate system as Google.
>>>
>>> <MapGroup id="sheboygan" xsi:type="MapType">
>>>
>>> <Map xsi:type="MapGuideLayerType">
>>>
>>> <Type>MapGuide</Type>
>>>
>>> <SingleTile>true</SingleTile>
>>>
>>> <Extension>
>>>
>>> <ResourceId>Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition</ResourceId>
>>>
>>>
>>> <SelectionAsOverlay>true</SelectionAsOverlay>
>>>
>>> <SelectionFormat>PNG</SelectionFormat>
>>>
>>> <SelectionColor>0xFF0000FF</SelectionColor>
>>>
>>> </Extension>
>>>
>>> </Map>
>>>
>>> <Map xsi:type="WMSLayerType">
>>>
>>> <Type>Google</Type>
>>>
>>> <Extension>
>>>
>>> <ResourceId>google</ResourceId>
>>>
>>> <Options>
>>>
>>> <name>GoogleLayer</name>
>>>
>>> <type>G_PHYSICAL_MAP</type>
>>>
>>> <isBaseLayer>true</isBaseLayer>
>>>
>>> <sphericalMercator>false</sphericalMercator>
>>>
>>> </Options>
>>>
>>> </Extension>
>>>
>>> </Map>
>>>
>>> </MapGroup>
>>>
>>> Brian Berdel
>>>
>>> Applications Development Manager
>>>
>>> McMahon Associates, Inc.
>>>
>>> 425 Commerce Drive, Suite 200
>>>
>>> Fort Washington, Pennsylvania 19034
>>>
>>> p: 215.283.9444 x 260
>>>
>>> f: 215.283.9858
>>>
>>> [hidden email]
>>>
>>> http://www.mcmtrans.com/mcm_logo.jpg <http://www.mcmtrans.com/>
>>>
>>> New England | Mid-Atlantic | Florida
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> fusion-users mailing list
>>> [hidden email]
>>> http://lists.osgeo.org/mailman/listinfo/fusion-users
>>>
>>
>> --
>>   Michael Adair
>>   Senior Software Architect
>>   DM Solutions Group Inc.
>>
>>   Office: (613) 565-5056 x26
>>   [hidden email]
>>   http://www.dmsolutions.ca
>>   http://research.dmsolutions.ca
>>
>>
>> _______________________________________________
>> fusion-users mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/fusion-users
>
>
> __________________________________________
>
>    Paul Spencer
>    Chief Technology Officer
>    DM Solutions Group Inc
>    http://research.dmsolutions.ca/
>
> _______________________________________________
> fusion-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-users
>

--
David Percy
Geospatial Data Manager
Geology Department
Portland State University
http://gisgeek.pdx.edu
503-725-3373
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Berdel, Brian

RE: Fusion 2 - Google & Sheboygan Sample

Reply Threaded More More options
Print post
Permalink
Thanks for the replies.  Those coordinate systems are not accessible in Mapguide 2.0.2

Maybe 2.1?

-Brian  

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of percy
Sent: Wednesday, April 01, 2009 10:07 AM
Cc: [hidden email]
Subject: Re: [fusion-users] Fusion 2 - Google & Sheboygan Sample

You have to use Spherical Mercator EPSG:900913 (google in L33T) or
EPSG:3785, but I don't know how to specify that in mapguide, just in
mapserver :-)
Does mapguide reproject on-the-fly?
Percy

Paul Spencer wrote:

> Google and all the other commercial services are not in EPSG:4326 (WGS84
> LatLong), rather they use a spherical mercator projection.  I'm not sure
> how to configure this in MapGuide.
>
>
> On 31-Mar-09, at 5:00 PM, Berdel, Brian wrote:
>
>> Thanks Mike, that actually did work to get them both on.  However I
>> have to zoom in to Sheboygan then turn the layers on and off to get
>> them to appear.
>>
>> These are the problems I have noticed:
>>
>> 1. I cannot set the correct extents...The map always starts with a
>> full view of the world...Shouldn't it get set to the extents of my
>> first map?
>>
>>     I tried setting it with ( as in example)
>>
>>         <maxExtent>-87.764986990962839,- 87.695521510899724,
>> 43.691398128787782, 43.797520000480347</maxExtent>
>>
>>     I noticed in Generic.js that there is a comment saying:
>>
>>     this.mapTag.layerOptions.maxExtent = null;    //maxExtent not
>> allowed on Google layers
>>    
>>     So it looks as though this is not correct...
>>
>> 2. Once viewable, the maps do not overlay properly even though they
>> are both the same coordinate system WGS84.
>>
>>     I tried with Sheboygan and some other data I have in WGS84.
>>
>> 3. You cannot set the maps background color to transparent in studio /
>> maestro / or XML (not that I know of anyway)
>>     So, there will always be a color blocking the underlying google
>> map if any layer from the top map is on
>>     This also goes for any maps you may try to overlay
>>
>>
>> Thanks,
>>
>> Brian
>> -----Original Message-----
>> From: Mike Adair [mailto:[hidden email]]
>> Sent: Tuesday, March 31, 2009 4:09 PM
>> To: Berdel, Brian
>> Cc: [hidden email]
>> Subject: Re: [fusion-users] Fusion 2 - Google & Sheboygan Sample
>>
>> Can you try putting a
>> <Options><isBaseLayer>false</isBaseLayer></Options> in your MapGuide
>> layer <Extension> element. OL only allows one baselayer at a time and I
>> suspect the MG layer gets set as a baselayer.
>>
>> Mike
>>
>> Berdel, Brian wrote:
>>>
>>> Hello,
>>>
>>> I have been trying to test the functionality of adding google maps to
>>> the Sheboygan Sample Map in my Appdef but have had no luck...I am able
>>> to get google to show up but the Sheboygan data does not. I can see
>>> the Sheboygan layers in the legend but when I zoom to sheyboygan the
>>> overview map does show that I am in the correct location but there are
>>> no layers in the map. Here is my AppDef. I have tried using the
>>> Tiledmap and regular and setting singletile & isbaselayer to true /
>>> false. Am I not doing something right? Sheboygan is the same
>>> coordinate system as Google.
>>>
>>> <MapGroup id="sheboygan" xsi:type="MapType">
>>>
>>> <Map xsi:type="MapGuideLayerType">
>>>
>>> <Type>MapGuide</Type>
>>>
>>> <SingleTile>true</SingleTile>
>>>
>>> <Extension>
>>>
>>> <ResourceId>Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition</ResourceId>
>>>
>>>
>>> <SelectionAsOverlay>true</SelectionAsOverlay>
>>>
>>> <SelectionFormat>PNG</SelectionFormat>
>>>
>>> <SelectionColor>0xFF0000FF</SelectionColor>
>>>
>>> </Extension>
>>>
>>> </Map>
>>>
>>> <Map xsi:type="WMSLayerType">
>>>
>>> <Type>Google</Type>
>>>
>>> <Extension>
>>>
>>> <ResourceId>google</ResourceId>
>>>
>>> <Options>
>>>
>>> <name>GoogleLayer</name>
>>>
>>> <type>G_PHYSICAL_MAP</type>
>>>
>>> <isBaseLayer>true</isBaseLayer>
>>>
>>> <sphericalMercator>false</sphericalMercator>
>>>
>>> </Options>
>>>
>>> </Extension>
>>>
>>> </Map>
>>>
>>> </MapGroup>
>>>
>>> Brian Berdel
>>>
>>> Applications Development Manager
>>>
>>> McMahon Associates, Inc.
>>>
>>> 425 Commerce Drive, Suite 200
>>>
>>> Fort Washington, Pennsylvania 19034
>>>
>>> p: 215.283.9444 x 260
>>>
>>> f: 215.283.9858
>>>
>>> [hidden email]
>>>
>>> http://www.mcmtrans.com/mcm_logo.jpg <http://www.mcmtrans.com/>
>>>
>>> New England | Mid-Atlantic | Florida
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> fusion-users mailing list
>>> [hidden email]
>>> http://lists.osgeo.org/mailman/listinfo/fusion-users
>>>
>>
>> --
>>   Michael Adair
>>   Senior Software Architect
>>   DM Solutions Group Inc.
>>
>>   Office: (613) 565-5056 x26
>>   [hidden email]
>>   http://www.dmsolutions.ca
>>   http://research.dmsolutions.ca
>>
>>
>> _______________________________________________
>> fusion-users mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/fusion-users
>
>
> __________________________________________
>
>    Paul Spencer
>    Chief Technology Officer
>    DM Solutions Group Inc
>    http://research.dmsolutions.ca/
>
> _______________________________________________
> fusion-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-users
>

--
David Percy
Geospatial Data Manager
Geology Department
Portland State University
http://gisgeek.pdx.edu
503-725-3373
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Jason Birch

RE: Fusion 2 - Google & Sheboygan Sample

Reply Threaded More More options
Print post
Permalink
In reply to this post by percy-2
Yes, MapGuide can project on the fly; prior to 2.1 vector only, but now both vector and raster.  Just set the projection on the Map level.  There is, of course, a bit of a performance cost but in some cases it can make more sense than reprojecting your data source.

I'll ask a question on the mapguide-internals list because I can't figure out how to get to these codes with the version of CS-Map we have bundled at 2.1.

Jason

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of percy
Sent: April-01-09 7:07 AM
Cc: [hidden email]
Subject: Re: [fusion-users] Fusion 2 - Google & Sheboygan Sample

You have to use Spherical Mercator EPSG:900913 (google in L33T) or
EPSG:3785, but I don't know how to specify that in mapguide, just in
mapserver :-)
Does mapguide reproject on-the-fly?
Percy

Paul Spencer wrote:

> Google and all the other commercial services are not in EPSG:4326 (WGS84
> LatLong), rather they use a spherical mercator projection.  I'm not sure
> how to configure this in MapGuide.
>
>
> On 31-Mar-09, at 5:00 PM, Berdel, Brian wrote:
>
>> Thanks Mike, that actually did work to get them both on.  However I
>> have to zoom in to Sheboygan then turn the layers on and off to get
>> them to appear.
>>
>> These are the problems I have noticed:
>>
>> 1. I cannot set the correct extents...The map always starts with a
>> full view of the world...Shouldn't it get set to the extents of my
>> first map?
>>
>>     I tried setting it with ( as in example)
>>
>>         <maxExtent>-87.764986990962839,- 87.695521510899724,
>> 43.691398128787782, 43.797520000480347</maxExtent>
>>
>>     I noticed in Generic.js that there is a comment saying:
>>
>>     this.mapTag.layerOptions.maxExtent = null;    //maxExtent not
>> allowed on Google layers
>>    
>>     So it looks as though this is not correct...
>>
>> 2. Once viewable, the maps do not overlay properly even though they
>> are both the same coordinate system WGS84.
>>
>>     I tried with Sheboygan and some other data I have in WGS84.
>>
>> 3. You cannot set the maps background color to transparent in studio /
>> maestro / or XML (not that I know of anyway)
>>     So, there will always be a color blocking the underlying google
>> map if any layer from the top map is on
>>     This also goes for any maps you may try to overlay
>>
>>
>> Thanks,
>>
>> Brian
>> -----Original Message-----
>> From: Mike Adair [mailto:[hidden email]]
>> Sent: Tuesday, March 31, 2009 4:09 PM
>> To: Berdel, Brian
>> Cc: [hidden email]
>> Subject: Re: [fusion-users] Fusion 2 - Google & Sheboygan Sample
>>
>> Can you try putting a
>> <Options><isBaseLayer>false</isBaseLayer></Options> in your MapGuide
>> layer <Extension> element. OL only allows one baselayer at a time and I
>> suspect the MG layer gets set as a baselayer.
>>
>> Mike
>>
>> Berdel, Brian wrote:
>>>
>>> Hello,
>>>
>>> I have been trying to test the functionality of adding google maps to
>>> the Sheboygan Sample Map in my Appdef but have had no luck...I am able
>>> to get google to show up but the Sheboygan data does not. I can see
>>> the Sheboygan layers in the legend but when I zoom to sheyboygan the
>>> overview map does show that I am in the correct location but there are
>>> no layers in the map. Here is my AppDef. I have tried using the
>>> Tiledmap and regular and setting singletile & isbaselayer to true /
>>> false. Am I not doing something right? Sheboygan is the same
>>> coordinate system as Google.
>>>
>>> <MapGroup id="sheboygan" xsi:type="MapType">
>>>
>>> <Map xsi:type="MapGuideLayerType">
>>>
>>> <Type>MapGuide</Type>
>>>
>>> <SingleTile>true</SingleTile>
>>>
>>> <Extension>
>>>
>>> <ResourceId>Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition</ResourceId>
>>>
>>>
>>> <SelectionAsOverlay>true</SelectionAsOverlay>
>>>
>>> <SelectionFormat>PNG</SelectionFormat>
>>>
>>> <SelectionColor>0xFF0000FF</SelectionColor>
>>>
>>> </Extension>
>>>
>>> </Map>
>>>
>>> <Map xsi:type="WMSLayerType">
>>>
>>> <Type>Google</Type>
>>>
>>> <Extension>
>>>
>>> <ResourceId>google</ResourceId>
>>>
>>> <Options>
>>>
>>> <name>GoogleLayer</name>
>>>
>>> <type>G_PHYSICAL_MAP</type>
>>>
>>> <isBaseLayer>true</isBaseLayer>
>>>
>>> <sphericalMercator>false</sphericalMercator>
>>>
>>> </Options>
>>>
>>> </Extension>
>>>
>>> </Map>
>>>
>>> </MapGroup>
>>>
>>> Brian Berdel
>>>
>>> Applications Development Manager
>>>
>>> McMahon Associates, Inc.
>>>
>>> 425 Commerce Drive, Suite 200
>>>
>>> Fort Washington, Pennsylvania 19034
>>>
>>> p: 215.283.9444 x 260
>>>
>>> f: 215.283.9858
>>>
>>> [hidden email]
>>>
>>> http://www.mcmtrans.com/mcm_logo.jpg <http://www.mcmtrans.com/>
>>>
>>> New England | Mid-Atlantic | Florida
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> fusion-users mailing list
>>> [hidden email]
>>> http://lists.osgeo.org/mailman/listinfo/fusion-users
>>>
>>
>> --
>>   Michael Adair
>>   Senior Software Architect
>>   DM Solutions Group Inc.
>>
>>   Office: (613) 565-5056 x26
>>   [hidden email]
>>   http://www.dmsolutions.ca
>>   http://research.dmsolutions.ca
>>
>>
>> _______________________________________________
>> fusion-users mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/fusion-users
>
>
> __________________________________________
>
>    Paul Spencer
>    Chief Technology Officer
>    DM Solutions Group Inc
>    http://research.dmsolutions.ca/
>
> _______________________________________________
> fusion-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-users
>

--
David Percy
Geospatial Data Manager
Geology Department
Portland State University
http://gisgeek.pdx.edu
503-725-3373
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Jason Birch

RE: Fusion 2 - Google & Sheboygan Sample

Reply Threaded More More options
Print post
Permalink
So...

>From Hugues Wisniewski on the MapGuide-Internals list:

> CsMap doesn't have a system in its dictionaries for this EPSG
> code but if the WKT is provided to the API in input, a custom
> system will be created.
> Since MapGuide understands such systems and doesn't need to
> have a system physically present in its dictionary to be able
> to work, MapGuide can work with this WKT.

This means that if you define the coordinate system for the map using WKT (quite easy via Maestro) it should work.  I'll see if I can try testing it a bit later.

The WKT for this projection is available at SpatialReference.org:

http://spatial-reference.org/ref/epsg/3785/ogcwkt/

Jason

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Jason Birch
Sent: April-01-09 11:50 AM
To: 'percy'
Cc: [hidden email]
Subject: RE: [fusion-users] Fusion 2 - Google & Sheboygan Sample

Yes, MapGuide can project on the fly; prior to 2.1 vector only, but now both vector and raster.  Just set the projection on the Map level.  There is, of course, a bit of a performance cost but in some cases it can make more sense than reprojecting your data source.

I'll ask a question on the mapguide-internals list because I can't figure out how to get to these codes with the version of CS-Map we have bundled at 2.1.

Jason

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of percy
Sent: April-01-09 7:07 AM
Cc: [hidden email]
Subject: Re: [fusion-users] Fusion 2 - Google & Sheboygan Sample

You have to use Spherical Mercator EPSG:900913 (google in L33T) or
EPSG:3785, but I don't know how to specify that in mapguide, just in
mapserver :-)
Does mapguide reproject on-the-fly?
Percy

Paul Spencer wrote:

> Google and all the other commercial services are not in EPSG:4326 (WGS84
> LatLong), rather they use a spherical mercator projection.  I'm not sure
> how to configure this in MapGuide.
>
>
> On 31-Mar-09, at 5:00 PM, Berdel, Brian wrote:
>
>> Thanks Mike, that actually did work to get them both on.  However I
>> have to zoom in to Sheboygan then turn the layers on and off to get
>> them to appear.
>>
>> These are the problems I have noticed:
>>
>> 1. I cannot set the correct extents...The map always starts with a
>> full view of the world...Shouldn't it get set to the extents of my
>> first map?
>>
>>     I tried setting it with ( as in example)
>>
>>         <maxExtent>-87.764986990962839,- 87.695521510899724,
>> 43.691398128787782, 43.797520000480347</maxExtent>
>>
>>     I noticed in Generic.js that there is a comment saying:
>>
>>     this.mapTag.layerOptions.maxExtent = null;    //maxExtent not
>> allowed on Google layers
>>    
>>     So it looks as though this is not correct...
>>
>> 2. Once viewable, the maps do not overlay properly even though they
>> are both the same coordinate system WGS84.
>>
>>     I tried with Sheboygan and some other data I have in WGS84.
>>
>> 3. You cannot set the maps background color to transparent in studio /
>> maestro / or XML (not that I know of anyway)
>>     So, there will always be a color blocking the underlying google
>> map if any layer from the top map is on
>>     This also goes for any maps you may try to overlay
>>
>>
>> Thanks,
>>
>> Brian
>> -----Original Message-----
>> From: Mike Adair [mailto:[hidden email]]
>> Sent: Tuesday, March 31, 2009 4:09 PM
>> To: Berdel, Brian
>> Cc: [hidden email]
>> Subject: Re: [fusion-users] Fusion 2 - Google & Sheboygan Sample
>>
>> Can you try putting a
>> <Options><isBaseLayer>false</isBaseLayer></Options> in your MapGuide
>> layer <Extension> element. OL only allows one baselayer at a time and I
>> suspect the MG layer gets set as a baselayer.
>>
>> Mike
>>
>> Berdel, Brian wrote:
>>>
>>> Hello,
>>>
>>> I have been trying to test the functionality of adding google maps to
>>> the Sheboygan Sample Map in my Appdef but have had no luck...I am able
>>> to get google to show up but the Sheboygan data does not. I can see
>>> the Sheboygan layers in the legend but when I zoom to sheyboygan the
>>> overview map does show that I am in the correct location but there are
>>> no layers in the map. Here is my AppDef. I have tried using the
>>> Tiledmap and regular and setting singletile & isbaselayer to true /
>>> false. Am I not doing something right? Sheboygan is the same
>>> coordinate system as Google.
>>>
>>> <MapGroup id="sheboygan" xsi:type="MapType">
>>>
>>> <Map xsi:type="MapGuideLayerType">
>>>
>>> <Type>MapGuide</Type>
>>>
>>> <SingleTile>true</SingleTile>
>>>
>>> <Extension>
>>>
>>> <ResourceId>Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition</ResourceId>
>>>
>>>
>>> <SelectionAsOverlay>true</SelectionAsOverlay>
>>>
>>> <SelectionFormat>PNG</SelectionFormat>
>>>
>>> <SelectionColor>0xFF0000FF</SelectionColor>
>>>
>>> </Extension>
>>>
>>> </Map>
>>>
>>> <Map xsi:type="WMSLayerType">
>>>
>>> <Type>Google</Type>
>>>
>>> <Extension>
>>>
>>> <ResourceId>google</ResourceId>
>>>
>>> <Options>
>>>
>>> <name>GoogleLayer</name>
>>>
>>> <type>G_PHYSICAL_MAP</type>
>>>
>>> <isBaseLayer>true</isBaseLayer>
>>>
>>> <sphericalMercator>false</sphericalMercator>
>>>
>>> </Options>
>>>
>>> </Extension>
>>>
>>> </Map>
>>>
>>> </MapGroup>
>>>
>>> Brian Berdel
>>>
>>> Applications Development Manager
>>>
>>> McMahon Associates, Inc.
>>>
>>> 425 Commerce Drive, Suite 200
>>>
>>> Fort Washington, Pennsylvania 19034
>>>
>>> p: 215.283.9444 x 260
>>>
>>> f: 215.283.9858
>>>
>>> [hidden email]
>>>
>>> http://www.mcmtrans.com/mcm_logo.jpg <http://www.mcmtrans.com/>
>>>
>>> New England | Mid-Atlantic | Florida
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> fusion-users mailing list
>>> [hidden email]
>>> http://lists.osgeo.org/mailman/listinfo/fusion-users
>>>
>>
>> --
>>   Michael Adair
>>   Senior Software Architect
>>   DM Solutions Group Inc.
>>
>>   Office: (613) 565-5056 x26
>>   [hidden email]
>>   http://www.dmsolutions.ca
>>   http://research.dmsolutions.ca
>>
>>
>> _______________________________________________
>> fusion-users mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/fusion-users
>
>
> __________________________________________
>
>    Paul Spencer
>    Chief Technology Officer
>    DM Solutions Group Inc
>    http://research.dmsolutions.ca/
>
> _______________________________________________
> fusion-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-users
>

--
David Percy
Geospatial Data Manager
Geology Department
Portland State University
http://gisgeek.pdx.edu
503-725-3373
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Berdel, Brian

RE: Fusion 2 - Google & Sheboygan Sample

Reply Threaded More More options
Print post
Permalink
Thanks for the quick reply Jason. I will give it a try as well.
Anyone have an idea on how to make the map background transparent for the dynamic map? I was successful in creating a mixed map group in 2 but the background color of my Dynamic map is there covering the base map.

Brian  Berdel
McMahon Associates, Inc.
p: 215.283.9444 x 260
www.mcmtrans.com

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Jason Birch
Sent: Wednesday, April 01, 2009 5:27 PM
To: [hidden email]
Subject: RE: [fusion-users] Fusion 2 - Google & Sheboygan Sample

So...

>From Hugues Wisniewski on the MapGuide-Internals list:

> CsMap doesn't have a system in its dictionaries for this EPSG
> code but if the WKT is provided to the API in input, a custom
> system will be created.
> Since MapGuide understands such systems and doesn't need to
> have a system physically present in its dictionary to be able
> to work, MapGuide can work with this WKT.

This means that if you define the coordinate system for the map using WKT (quite easy via Maestro) it should work.  I'll see if I can try testing it a bit later.

The WKT for this projection is available at SpatialReference.org:

http://spatial-reference.org/ref/epsg/3785/ogcwkt/

Jason

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Jason Birch
Sent: April-01-09 11:50 AM
To: 'percy'
Cc: [hidden email]
Subject: RE: [fusion-users] Fusion 2 - Google & Sheboygan Sample

Yes, MapGuide can project on the fly; prior to 2.1 vector only, but now both vector and raster.  Just set the projection on the Map level.  There is, of course, a bit of a performance cost but in some cases it can make more sense than reprojecting your data source.

I'll ask a question on the mapguide-internals list because I can't figure out how to get to these codes with the version of CS-Map we have bundled at 2.1.

Jason

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of percy
Sent: April-01-09 7:07 AM
Cc: [hidden email]
Subject: Re: [fusion-users] Fusion 2 - Google & Sheboygan Sample

You have to use Spherical Mercator EPSG:900913 (google in L33T) or
EPSG:3785, but I don't know how to specify that in mapguide, just in
mapserver :-)
Does mapguide reproject on-the-fly?
Percy

Paul Spencer wrote:

> Google and all the other commercial services are not in EPSG:4326 (WGS84
> LatLong), rather they use a spherical mercator projection.  I'm not sure
> how to configure this in MapGuide.
>
>
> On 31-Mar-09, at 5:00 PM, Berdel, Brian wrote:
>
>> Thanks Mike, that actually did work to get them both on.  However I
>> have to zoom in to Sheboygan then turn the layers on and off to get
>> them to appear.
>>
>> These are the problems I have noticed:
>>
>> 1. I cannot set the correct extents...The map always starts with a
>> full view of the world...Shouldn't it get set to the extents of my
>> first map?
>>
>>     I tried setting it with ( as in example)
>>
>>         <maxExtent>-87.764986990962839,- 87.695521510899724,
>> 43.691398128787782, 43.797520000480347</maxExtent>
>>
>>     I noticed in Generic.js that there is a comment saying:
>>
>>     this.mapTag.layerOptions.maxExtent = null;    //maxExtent not
>> allowed on Google layers
>>    
>>     So it looks as though this is not correct...
>>
>> 2. Once viewable, the maps do not overlay properly even though they
>> are both the same coordinate system WGS84.
>>
>>     I tried with Sheboygan and some other data I have in WGS84.
>>
>> 3. You cannot set the maps background color to transparent in studio /
>> maestro / or XML (not that I know of anyway)
>>     So, there will always be a color blocking the underlying google
>> map if any layer from the top map is on
>>     This also goes for any maps you may try to overlay
>>
>>
>> Thanks,
>>
>> Brian
>> -----Original Message-----
>> From: Mike Adair [mailto:[hidden email]]
>> Sent: Tuesday, March 31, 2009 4:09 PM
>> To: Berdel, Brian
>> Cc: [hidden email]
>> Subject: Re: [fusion-users] Fusion 2 - Google & Sheboygan Sample
>>
>> Can you try putting a
>> <Options><isBaseLayer>false</isBaseLayer></Options> in your MapGuide
>> layer <Extension> element. OL only allows one baselayer at a time and I
>> suspect the MG layer gets set as a baselayer.
>>
>> Mike
>>
>> Berdel, Brian wrote:
>>>
>>> Hello,
>>>
>>> I have been trying to test the functionality of adding google maps to
>>> the Sheboygan Sample Map in my Appdef but have had no luck...I am able
>>> to get google to show up but the Sheboygan data does not. I can see
>>> the Sheboygan layers in the legend but when I zoom to sheyboygan the
>>> overview map does show that I am in the correct location but there are
>>> no layers in the map. Here is my AppDef. I have tried using the
>>> Tiledmap and regular and setting singletile & isbaselayer to true /
>>> false. Am I not doing something right? Sheboygan is the same
>>> coordinate system as Google.
>>>
>>> <MapGroup id="sheboygan" xsi:type="MapType">
>>>
>>> <Map xsi:type="MapGuideLayerType">
>>>
>>> <Type>MapGuide</Type>
>>>
>>> <SingleTile>true</SingleTile>
>>>
>>> <Extension>
>>>
>>> <ResourceId>Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition</ResourceId>
>>>
>>>
>>> <SelectionAsOverlay>true</SelectionAsOverlay>
>>>
>>> <SelectionFormat>PNG</SelectionFormat>
>>>
>>> <SelectionColor>0xFF0000FF</SelectionColor>
>>>
>>> </Extension>
>>>
>>> </Map>
>>>
>>> <Map xsi:type="WMSLayerType">
>>>
>>> <Type>Google</Type>
>>>
>>> <Extension>
>>>
>>> <ResourceId>google</ResourceId>
>>>
>>> <Options>
>>>
>>> <name>GoogleLayer</name>
>>>
>>> <type>G_PHYSICAL_MAP</type>
>>>
>>> <isBaseLayer>true</isBaseLayer>
>>>
>>> <sphericalMercator>false</sphericalMercator>
>>>
>>> </Options>
>>>
>>> </Extension>
>>>
>>> </Map>
>>>
>>> </MapGroup>
>>>
>>> Brian Berdel
>>>
>>> Applications Development Manager
>>>
>>> McMahon Associates, Inc.
>>>
>>> 425 Commerce Drive, Suite 200
>>>
>>> Fort Washington, Pennsylvania 19034
>>>
>>> p: 215.283.9444 x 260
>>>
>>> f: 215.283.9858
>>>
>>> [hidden email]
>>>
>>> http://www.mcmtrans.com/mcm_logo.jpg <http://www.mcmtrans.com/>
>>>
>>> New England | Mid-Atlantic | Florida
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> fusion-users mailing list
>>> [hidden email]
>>> http://lists.osgeo.org/mailman/listinfo/fusion-users
>>>
>>
>> --
>>   Michael Adair
>>   Senior Software Architect
>>   DM Solutions Group Inc.
>>
>>   Office: (613) 565-5056 x26
>>   [hidden email]
>>   http://www.dmsolutions.ca
>>   http://research.dmsolutions.ca
>>
>>
>> _______________________________________________
>> fusion-users mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/fusion-users
>
>
> __________________________________________
>
>    Paul Spencer
>    Chief Technology Officer
>    DM Solutions Group Inc
>    http://research.dmsolutions.ca/
>
> _______________________________________________
> fusion-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-users
>

--
David Percy
Geospatial Data Manager
Geology Department
Portland State University
http://gisgeek.pdx.edu
503-725-3373
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Matteo

Re: Fusion 2 - Google & Sheboygan Sample

Reply Threaded More More options
Print post
Permalink
In reply to this post by Berdel, Brian
Hi Brian,
  I have the same problems. Have you solve it?
Regards,
Matteo

Berdel, Brian wrote:
Hello,
I have been trying to test the functionality of adding google maps to the Sheboygan Sample Map in my Appdef but have had no luck...I am able to get google to show up but the Sheboygan data does not. I can see the Sheboygan layers in the legend but when I zoom to sheyboygan the overview map does show that I am in the correct location but there are no layers in the map.  Here is my AppDef.    I have tried using the Tiledmap and regular and setting singletile & isbaselayer to true / false.  Am I not doing something right?  Sheboygan is the same coordinate system as Google.

<MapGroup id="sheboygan" xsi:type="MapType">

       <Map xsi:type="MapGuideLayerType">
        <Type>MapGuide</Type>
        <SingleTile>true</SingleTile>
        <Extension>
              <ResourceId>Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition</ResourceId>
          <SelectionAsOverlay>true</SelectionAsOverlay>
          <SelectionFormat>PNG</SelectionFormat>
          <SelectionColor>0xFF0000FF</SelectionColor>
        </Extension>
      </Map>
      <Map xsi:type="WMSLayerType">
        <Type>Google</Type>
        <Extension>
          <ResourceId>google</ResourceId>
          <Options>
            <name>GoogleLayer</name>
            <type>G_PHYSICAL_MAP</type>
            <isBaseLayer>true</isBaseLayer>
            <sphericalMercator>false</sphericalMercator>

          </Options>
        </Extension>
      </Map>
    </MapGroup>

[cid:image002.png@01C9B20E.7AD3FFD0]



Brian Berdel
Applications Development Manager

McMahon Associates, Inc.
425 Commerce Drive, Suite 200
Fort Washington, Pennsylvania 19034
p: 215.283.9444 x 260
f:  215.283.9858
brian.berdel@mcmtrans.com

[cid:image001.jpg@01C9B20E.3C566130]<http://www.mcmtrans.com/>
   New England  |  Mid-Atlantic  |  Florida

 
 
_______________________________________________
fusion-users mailing list
fusion-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fusion-users
Chris Claydon

RE: Fusion 2 - Google & Sheboygan Sample

Reply Threaded More More options
Print post
Permalink
I think you might have to add the setting <Options><isBaseLayer>false</isBaseLayer></Options> to the <Extension> section of the Sheboygan map reference. OpenLayers only lets you have one base layer at a time, so if you want Google as a base layer, you need MapGuide to be an overlay.

Chris.

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Matteo
Sent: Saturday, June 20, 2009 10:14 AM
To: [hidden email]
Subject: Re: [fusion-users] Fusion 2 - Google & Sheboygan Sample


Hi Brian,
  I have the same problems. Have you solve it?
Regards,
Matteo


Berdel, Brian wrote:

>
> Hello,
> I have been trying to test the functionality of adding google maps to the
> Sheboygan Sample Map in my Appdef but have had no luck...I am able to get
> google to show up but the Sheboygan data does not. I can see the Sheboygan
> layers in the legend but when I zoom to sheyboygan the overview map does
> show that I am in the correct location but there are no layers in the map.
> Here is my AppDef.    I have tried using the Tiledmap and regular and
> setting singletile & isbaselayer to true / false.  Am I not doing
> something right?  Sheboygan is the same coordinate system as Google.
>
> <MapGroup id="sheboygan" xsi:type="MapType">
>
>        <Map xsi:type="MapGuideLayerType">
>         <Type>MapGuide</Type>
>         <SingleTile>true</SingleTile>
>         <Extension>
>              
> <ResourceId>Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition</ResourceId>
>           <SelectionAsOverlay>true</SelectionAsOverlay>
>           <SelectionFormat>PNG</SelectionFormat>
>           <SelectionColor>0xFF0000FF</SelectionColor>
>         </Extension>
>       </Map>
>       <Map xsi:type="WMSLayerType">
>         <Type>Google</Type>
>         <Extension>
>           <ResourceId>google</ResourceId>
>           <Options>
>             <name>GoogleLayer</name>
>             <type>G_PHYSICAL_MAP</type>
>             <isBaseLayer>true</isBaseLayer>
>             <sphericalMercator>false</sphericalMercator>
>
>           </Options>
>         </Extension>
>       </Map>
>     </MapGroup>
>
> [cid:[hidden email]]
>
>
>
> Brian Berdel
> Applications Development Manager
>
> McMahon Associates, Inc.
> 425 Commerce Drive, Suite 200
> Fort Washington, Pennsylvania 19034
> p: 215.283.9444 x 260
> f:  215.283.9858
> [hidden email]
>
> [cid:[hidden email]]<http://www.mcmtrans.com/>
>    New England  |  Mid-Atlantic  |  Florida
>
>  
>  
> _______________________________________________
> fusion-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-users
>
>

--
View this message in context: http://n2.nabble.com/Fusion-2---Google---Sheboygan-Sample-tp2565066p3125315.html
Sent from the Fusion Users mailing list archive at Nabble.com.

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

Custom Widgets Placement

Reply Threaded More More options
Print post
Permalink
Can I put custom widgets in any other place other than within the
Fusion->Widgets folder? I'm just concerned about updating Fusion
versions an not blowing away my custom widgets.

- Tim

----
Timothy J Nolte - [hidden email]
Network Planning Engineer

iPCS Wireless, Inc.
4717 Broadmoor Ave, Suite G
Kentwood, MI 49512

Office: 616-656-5163
PCS:    616-706-2438
Fax:    616-554-6484
Web: www.ipcswirelessinc.com
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Paul Spencer-2

Re: Custom Widgets Placement

Reply Threaded More More options
Print post
Permalink
absolutely, we use a folder called ext in the root of fusion to put  
other widgets, typically in a subfolder and then add a <Location>ext/
subfolder</Location> to the widget definition in the Application  
Definition.  Your widget can then use this.widgetTag.location if you  
need to know where additional assets are to be accessed from.

Cheers

Paul

On 22-Jun-09, at 2:06 PM, Nolte, Tim wrote:

> Can I put custom widgets in any other place other than within the
> Fusion->Widgets folder? I'm just concerned about updating Fusion
> versions an not blowing away my custom widgets.
>
> - Tim
>
> ----
> Timothy J Nolte - [hidden email]
> Network Planning Engineer
>
> iPCS Wireless, Inc.
> 4717 Broadmoor Ave, Suite G
> Kentwood, MI 49512
>
> Office: 616-656-5163
> PCS:    616-706-2438
> Fax:    616-554-6484
> Web: www.ipcswirelessinc.com
> _______________________________________________
> fusion-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-users


__________________________________________

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

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

Re: Custom Widgets Placement

Reply Threaded More More options
Print post
Permalink
In reply to this post by Nolte, Tim
You can specify a <Location> parameter in your widget info file, and  
in the actual widget reference. I believe the path you specify is a  
folder relative to the main fusion folder. The ext folder is a good  
place for custom widget implementations. The widget info file still  
needs to go into widgets/widgetinfo however.

Chris.

Sent from my iPhone

On 2009-06-22, at 12:07 PM, "Nolte, Tim"  
<[hidden email]> wrote:

> Can I put custom widgets in any other place other than within the
> Fusion->Widgets folder? I'm just concerned about updating Fusion
> versions an not blowing away my custom widgets.
>
> - Tim
>
> ----
> Timothy J Nolte - [hidden email]
> Network Planning Engineer
>
> iPCS Wireless, Inc.
> 4717 Broadmoor Ave, Suite G
> Kentwood, MI 49512
>
> Office: 616-656-5163
> PCS:    616-706-2438
> Fax:    616-554-6484
> Web: www.ipcswirelessinc.com
> _______________________________________________
> fusion-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-users
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Nolte, Tim

Fusion 2.0 & TileCache

Reply Threaded More More options
Print post
Permalink
Has anyone successfully implemented a TileCache map layer in Fusion 2.0?
Information that I've found seems to point to Fusion 2.0 supporting all
OpenLayers map layers, but I would like to know if anyone has actually
gotten TileCache working with Fusion.

- Tim

----
Timothy J Nolte - [hidden email]
Network Planning Engineer

iPCS Wireless, Inc.
4717 Broadmoor Ave, Suite G
Kentwood, MI 49512

Office: 616-656-5163
PCS:    616-706-2438
Fax:    616-554-6484
Web: www.ipcswirelessinc.com
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Nolte, Tim

MapServer/Fusion 2.0/SelectionPanel

Reply Threaded More More options
Print post
Permalink
In reply to this post by Chris Claydon
I'm trying to figure out how to get selections working in Fusion 2.0. I
have:

        METADATA
                "groupLegendLabel" "Cell Sites"
                "groupExpandInLegend" "false"
                "legendLabel" "On-Air"
                "selectable" "true"
                "query_include_items" "all"
        END

For my METADATA on my individual layer. But when I try to use the
selection tool and select one of these objects I get nothing. I'm
running MapServer 5.4 & Fusion 2.0. This layer is an Oracle spatial
query resulting in points.

- Tim

----
Timothy J Nolte - [hidden email]
Network Planning Engineer

iPCS Wireless, Inc.
4717 Broadmoor Ave, Suite G
Kentwood, MI 49512

Office: 616-656-5163
PCS:    616-706-2438
Fax:    616-554-6484
Web: www.ipcswirelessinc.com
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Paul Spencer-2

Re: MapServer/Fusion 2.0/SelectionPanel

Reply Threaded More More options
Print post
Permalink
Fusion only seems to need the metadata "selectable" on mapserver  
layers to determine if features can be selected from any given layer.  
You may need to also include a template in your layer so that  
mapserver itself thinks the layer can be queried.

TEMPLATE "ttt.html"

Can you test with a shape file to see if perhaps selection works with  
them?

Paul

On 23-Jun-09, at 12:15 PM, Nolte, Tim wrote:

> I'm trying to figure out how to get selections working in Fusion  
> 2.0. I
> have:
>
> METADATA
> "groupLegendLabel" "Cell Sites"
> "groupExpandInLegend" "false"
> "legendLabel" "On-Air"
> "selectable" "true"
> "query_include_items" "all"
> END
>
> For my METADATA on my individual layer. But when I try to use the
> selection tool and select one of these objects I get nothing. I'm
> running MapServer 5.4 & Fusion 2.0. This layer is an Oracle spatial
> query resulting in points.
>
> - Tim
>
> ----
> Timothy J Nolte - [hidden email]
> Network Planning Engineer
>
> iPCS Wireless, Inc.
> 4717 Broadmoor Ave, Suite G
> Kentwood, MI 49512
>
> Office: 616-656-5163
> PCS:    616-706-2438
> Fax:    616-554-6484
> Web: www.ipcswirelessinc.com
> _______________________________________________
> fusion-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-users


__________________________________________

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

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

RE: MapServer/Fusion 2.0/SelectionPanel

Reply Threaded More More options
Print post
Permalink
OK, so stupid me I didn't have the TEMPLATE line for the layers I wanted
selectable. This took care of it for me. Now if I could only figure out
a way to make a pretty transparent highlight instead of the mapfile
HIGHLIGHT that changes the color completely of the object(s) selected.

- Tim

----
Timothy J Nolte - [hidden email]
Network Planning Engineer

iPCS Wireless, Inc.
4717 Broadmoor Ave, Suite G
Kentwood, MI 49512

Office: 616-656-5163
PCS:    616-706-2438
Fax:    616-554-6484
Web: www.ipcswirelessinc.com
-----Original Message-----
From: Paul Spencer [mailto:[hidden email]]
Sent: Tuesday, June 23, 2009 2:08 PM
To: Nolte, Tim
Cc: [hidden email]
Subject: Re: [fusion-users] MapServer/Fusion 2.0/SelectionPanel

Fusion only seems to need the metadata "selectable" on mapserver  
layers to determine if features can be selected from any given layer.  
You may need to also include a template in your layer so that  
mapserver itself thinks the layer can be queried.

TEMPLATE "ttt.html"

Can you test with a shape file to see if perhaps selection works with  
them?

Paul

On 23-Jun-09, at 12:15 PM, Nolte, Tim wrote:

> I'm trying to figure out how to get selections working in Fusion  
> 2.0. I
> have:
>
> METADATA
> "groupLegendLabel" "Cell Sites"
> "groupExpandInLegend" "false"
> "legendLabel" "On-Air"
> "selectable" "true"
> "query_include_items" "all"
> END
>
> For my METADATA on my individual layer. But when I try to use the
> selection tool and select one of these objects I get nothing. I'm
> running MapServer 5.4 & Fusion 2.0. This layer is an Oracle spatial
> query resulting in points.
>
> - Tim
>
> ----
> Timothy J Nolte - [hidden email]
> Network Planning Engineer
>
> iPCS Wireless, Inc.
> 4717 Broadmoor Ave, Suite G
> Kentwood, MI 49512
>
> Office: 616-656-5163
> PCS:    616-706-2438
> Fax:    616-554-6484
> Web: www.ipcswirelessinc.com
> _______________________________________________
> fusion-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-users


__________________________________________

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


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

RE: MapServer/Fusion 2.0/SelectionPanel

Reply Threaded More More options
Print post
Permalink
In reply to this post by Paul Spencer-2
So does anyone know how I would go about triggering the SelectionPanel
top open when I use the Select tool? Currently in my JavaScript I have
defined:

                        var panelSelection = new Jx.Panel({
                                label: 'Selection',
                                content: 'SelectionPanel',
                                collapse: false,
                                maximize: true,
                                closed: true
                        });

This is so that the Legend is maximized and the SelectionPanel is
closed. I'd like for the SelectionPanel to fly open to show the query
results after I use the Select tool. Anyone tried this?

----
Timothy J Nolte - [hidden email]
Network Planning Engineer

iPCS Wireless, Inc.
4717 Broadmoor Ave, Suite G
Kentwood, MI 49512

Office: 616-656-5163
PCS:    616-706-2438
Fax:    616-554-6484
Web: www.ipcswirelessinc.com

-----Original Message-----
From: Nolte, Tim
Sent: Tuesday, June 23, 2009 3:49 PM
To: [hidden email]
Subject: RE: [fusion-users] MapServer/Fusion 2.0/SelectionPanel

OK, so stupid me I didn't have the TEMPLATE line for the layers I wanted
selectable. This took care of it for me. Now if I could only figure out
a way to make a pretty transparent highlight instead of the mapfile
HIGHLIGHT that changes the color completely of the object(s) selected.

- Tim

----
Timothy J Nolte - [hidden email]
Network Planning Engineer

iPCS Wireless, Inc.
4717 Broadmoor Ave, Suite G
Kentwood, MI 49512

Office: 616-656-5163
PCS:    616-706-2438
Fax:    616-554-6484
Web: www.ipcswirelessinc.com
-----Original Message-----
From: Paul Spencer [mailto:[hidden email]]
Sent: Tuesday, June 23, 2009 2:08 PM
To: Nolte, Tim
Cc: [hidden email]
Subject: Re: [fusion-users] MapServer/Fusion 2.0/SelectionPanel

Fusion only seems to need the metadata "selectable" on mapserver  
layers to determine if features can be selected from any given layer.  
You may need to also include a template in your layer so that  
mapserver itself thinks the layer can be queried.

TEMPLATE "ttt.html"

Can you test with a shape file to see if perhaps selection works with  
them?

Paul

On 23-Jun-09, at 12:15 PM, Nolte, Tim wrote:

> I'm trying to figure out how to get selections working in Fusion  
> 2.0. I
> have:
>
> METADATA
> "groupLegendLabel" "Cell Sites"
> "groupExpandInLegend" "false"
> "legendLabel" "On-Air"
> "selectable" "true"
> "query_include_items" "all"
> END
>
> For my METADATA on my individual layer. But when I try to use the
> selection tool and select one of these objects I get nothing. I'm
> running MapServer 5.4 & Fusion 2.0. This layer is an Oracle spatial
> query resulting in points.
>
> - Tim
>
> ----
> Timothy J Nolte - [hidden email]
> Network Planning Engineer
>
> iPCS Wireless, Inc.
> 4717 Broadmoor Ave, Suite G
> Kentwood, MI 49512
>
> Office: 616-656-5163
> PCS:    616-706-2438
> Fax:    616-554-6484
> Web: www.ipcswirelessinc.com
> _______________________________________________
> fusion-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-users


__________________________________________

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


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

Re: MapServer/Fusion 2.0/SelectionPanel

Reply Threaded More More options
Print post
Permalink
One of the things that is not in jxlib is animation effects for things  
like opening dialogs, panels, menus, flyouts etc - there really should  
be a way of doing that!  In any case, you can open the panel by  
calling panelSelection.toggleCollapse(false) if the panel is used by  
itself or by calling panelSelection.maximize() if it is part of a  
Jx.PanelSet.

You can use events to determine when to do this,

//assuming your map is in a div with an id of 'Map' ...
//open the panel when a selection has been made
Fusion
.getMapById('Map').registerForEvent(Fusion.Event.MAP_SELECTION_ON,  
function() {
     panelSelection.toggleCollapse(false);
});
//close the panel when the selection has been cleared?
Fusion
.getMapById('Map').registerForEvent(Fusion.Event.MAP_SELECTION_OFF,  
function() {
     panelSelection.toggleCollapse(true);
});

Cheers

Paul

On 23-Jun-09, at 4:54 PM, Nolte, Tim wrote:

> So does anyone know how I would go about triggering the SelectionPanel
> top open when I use the Select tool? Currently in my JavaScript I have
> defined:
>
> var panelSelection = new Jx.Panel({
> label: 'Selection',
> content: 'SelectionPanel',
> collapse: false,
> maximize: true,
> closed: true
> });
>
> This is so that the Legend is maximized and the SelectionPanel is
> closed. I'd like for the SelectionPanel to fly open to show the query
> results after I use the Select tool. Anyone tried this?
>
> ----
> Timothy J Nolte - [hidden email]
> Network Planning Engineer
>
> iPCS Wireless, Inc.
> 4717 Broadmoor Ave, Suite G
> Kentwood, MI 49512
>
> Office: 616-656-5163
> PCS:    616-706-2438
> Fax:    616-554-6484
> Web: www.ipcswirelessinc.com
>
> -----Original Message-----
> From: Nolte, Tim
> Sent: Tuesday, June 23, 2009 3:49 PM
> To: [hidden email]
> Subject: RE: [fusion-users] MapServer/Fusion 2.0/SelectionPanel
>
> OK, so stupid me I didn't have the TEMPLATE line for the layers I  
> wanted
> selectable. This took care of it for me. Now if I could only figure  
> out
> a way to make a pretty transparent highlight instead of the mapfile
> HIGHLIGHT that changes the color completely of the object(s) selected.
>
> - Tim
>
> ----
> Timothy J Nolte - [hidden email]
> Network Planning Engineer
>
> iPCS Wireless, Inc.
> 4717 Broadmoor Ave, Suite G
> Kentwood, MI 49512
>
> Office: 616-656-5163
> PCS:    616-706-2438
> Fax:    616-554-6484
> Web: www.ipcswirelessinc.com
> -----Original Message-----
> From: Paul Spencer [mailto:[hidden email]]
> Sent: Tuesday, June 23, 2009 2:08 PM
> To: Nolte, Tim
> Cc: [hidden email]
> Subject: Re: [fusion-users] MapServer/Fusion 2.0/SelectionPanel
>
> Fusion only seems to need the metadata "selectable" on mapserver
> layers to determine if features can be selected from any given layer.
> You may need to also include a template in your layer so that
> mapserver itself thinks the layer can be queried.
>
> TEMPLATE "ttt.html"
>
> Can you test with a shape file to see if perhaps selection works with
> them?
>
> Paul
>
> On 23-Jun-09, at 12:15 PM, Nolte, Tim wrote:
>
>> I'm trying to figure out how to get selections working in Fusion
>> 2.0. I
>> have:
>>
>> METADATA
>> "groupLegendLabel" "Cell Sites"
>> "groupExpandInLegend" "false"
>> "legendLabel" "On-Air"
>> "selectable" "true"
>> "query_include_items" "all"
>> END
>>
>> For my METADATA on my individual layer. But when I try to use the
>> selection tool and select one of these objects I get nothing. I'm
>> running MapServer 5.4 & Fusion 2.0. This layer is an Oracle spatial
>> query resulting in points.
>>
>> - Tim
>>
>> ----
>> Timothy J Nolte - [hidden email]
>> Network Planning Engineer
>>
>> iPCS Wireless, Inc.
>> 4717 Broadmoor Ave, Suite G
>> Kentwood, MI 49512
>>
>> Office: 616-656-5163
>> PCS:    616-706-2438
>> Fax:    616-554-6484
>> Web: www.ipcswirelessinc.com
>> _______________________________________________
>> fusion-users mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/fusion-users
>
>
> __________________________________________
>
>    Paul Spencer
>    Chief Technology Officer
>    DM Solutions Group Inc
>    http://research.dmsolutions.ca/
>
>
> _______________________________________________
> fusion-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-users


__________________________________________

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

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