Integrate Commercial Map Service Layers Problem

8 messages Options
Embed this post
Permalink
Arthur Liu

Integrate Commercial Map Service Layers Problem

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

Is there anyone successfully integrated Yahoo or Virtual Earth in MapGuide?

I always got failed with error message as “OpenLayers.Layer[this.layerType](…)” is not a constructor, unless I add the script for openlayers(<script type="text/javascript" src="http://www.openlayers.org/api/OpenLayers.js"></script>) into the index.html in MG template .  Any suggestions and comments are very appreciated. Thanks.

 

BTW, Google Layers doesn’t has such kind of problem.

 

Regards,

Arthur


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

RE: Integrate Commercial Map Service Layers Problem

Reply Threaded More More options
Print post
Permalink
Hey Arthur,

Are you using Fusion trunk?  I believe that there were some defects or maybe missing code that prevented this from working with previous versions.

Zac recently updated the wiki page on this:

http://trac.osgeo.org/fusion/wiki/MapGuideCommercialOverlays

Jason

________________________________
From: Arthur Liu
Sent: Thursday, July 16, 2009 8:18 PM
Subject: [fusion-dev] Integrate Commercial Map Service Layers Problem

Is there anyone successfully integrated Yahoo or Virtual Earth in MapGuide?
I always got failed with error message as “OpenLayers.Layer[this.layerType](…)” is not a constructor, unless I add the script for openlayers(<script type="text/javascript" src="http://www.openlayers.org/api/OpenLayers.js"></script>) into the index.html in MG template .  Any suggestions and comments are very appreciated. Thanks.

BTW, Google Layers doesn’t has such kind of problem.

Regards,
Arthur
_______________________________________________
fusion-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-dev
Arthur Liu

RE: Integrate Commercial Map Service Layers Problem

Reply Threaded More More options
Print post
Permalink
Thanks for your reply.
I am using the lasted revision but still have that problem.

Regards,
Arthur

-----Original Message-----
From: Jason Birch [mailto:[hidden email]]
Sent: Friday, July 17, 2009 12:02 PM
To: Arthur Liu; [hidden email]
Subject: RE: Integrate Commercial Map Service Layers Problem

Hey Arthur,

Are you using Fusion trunk?  I believe that there were some defects or maybe missing code that prevented this from working with previous versions.

Zac recently updated the wiki page on this:

http://trac.osgeo.org/fusion/wiki/MapGuideCommercialOverlays

Jason

________________________________
From: Arthur Liu
Sent: Thursday, July 16, 2009 8:18 PM
Subject: [fusion-dev] Integrate Commercial Map Service Layers Problem

Is there anyone successfully integrated Yahoo or Virtual Earth in MapGuide?
I always got failed with error message as "OpenLayers.Layer[this.layerType](...)" is not a constructor, unless I add the script for openlayers(<script type="text/javascript" src="http://www.openlayers.org/api/OpenLayers.js"></script>) into the index.html in MG template .  Any suggestions and comments are very appreciated. Thanks.

BTW, Google Layers doesn't has such kind of problem.

Regards,
Arthur
_______________________________________________
fusion-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-dev
zspitzer

Re: RE: Integrate Commercial Map Service Layers Problem

Reply Threaded More More options
Print post
Permalink
I didn't do the wiki page  :)

fusion uses a a profile to reduce the size of the file, all of OL is like 1mb..

http://trac.openlayers.org/wiki/Profiles

the build script for fusion will have a .cfg file which is called during the
build process, you will need to locate that in the fusion tree and add
in the layers you need

http://trac.osgeo.org/fusion/browser/trunk/fusion.cfg

remember you cannot use commerical maps with a password protected site,
subject to licensing

z

On Fri, Jul 17, 2009 at 4:55 PM, Arthur Liu<[hidden email]> wrote:

> Thanks for your reply.
> I am using the lasted revision but still have that problem.
>
> Regards,
> Arthur
>
> -----Original Message-----
> From: Jason Birch [mailto:[hidden email]]
> Sent: Friday, July 17, 2009 12:02 PM
> To: Arthur Liu; [hidden email]
> Subject: RE: Integrate Commercial Map Service Layers Problem
>
> Hey Arthur,
>
> Are you using Fusion trunk?  I believe that there were some defects or maybe missing code that prevented this from working with previous versions.
>
> Zac recently updated the wiki page on this:
>
> http://trac.osgeo.org/fusion/wiki/MapGuideCommercialOverlays
>
> Jason
>
> ________________________________
> From: Arthur Liu
> Sent: Thursday, July 16, 2009 8:18 PM
> Subject: [fusion-dev] Integrate Commercial Map Service Layers Problem
>
> Is there anyone successfully integrated Yahoo or Virtual Earth in MapGuide?
> I always got failed with error message as "OpenLayers.Layer[this.layerType](...)" is not a constructor, unless I add the script for openlayers(<script type="text/javascript" src="http://www.openlayers.org/api/OpenLayers.js"></script>) into the index.html in MG template .  Any suggestions and comments are very appreciated. Thanks.
>
> BTW, Google Layers doesn't has such kind of problem.
>
> Regards,
> Arthur
> _______________________________________________
> fusion-dev mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-dev
>



--
Zac Spitzer -
http://zacster.blogspot.com
+61 405 847 168
_______________________________________________
fusion-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-dev
Paul Spencer-2

Re: RE: Integrate Commercial Map Service Layers Problem

Reply Threaded More More options
Print post
Permalink
It was Zak :)  I suspect that the OpenLayers build included in Fusion  
does not contain all the commercial map types, I will check with Zak  
on this today.

Paul

On 17-Jul-09, at 3:16 AM, Zac Spitzer wrote:

> I didn't do the wiki page  :)
>
> fusion uses a a profile to reduce the size of the file, all of OL is  
> like 1mb..
>
> http://trac.openlayers.org/wiki/Profiles
>
> the build script for fusion will have a .cfg file which is called  
> during the
> build process, you will need to locate that in the fusion tree and add
> in the layers you need
>
> http://trac.osgeo.org/fusion/browser/trunk/fusion.cfg
>
> remember you cannot use commerical maps with a password protected  
> site,
> subject to licensing
>
> z
>
> On Fri, Jul 17, 2009 at 4:55 PM, Arthur Liu<[hidden email]>  
> wrote:
>> Thanks for your reply.
>> I am using the lasted revision but still have that problem.
>>
>> Regards,
>> Arthur
>>
>> -----Original Message-----
>> From: Jason Birch [mailto:[hidden email]]
>> Sent: Friday, July 17, 2009 12:02 PM
>> To: Arthur Liu; [hidden email]
>> Subject: RE: Integrate Commercial Map Service Layers Problem
>>
>> Hey Arthur,
>>
>> Are you using Fusion trunk?  I believe that there were some defects  
>> or maybe missing code that prevented this from working with  
>> previous versions.
>>
>> Zac recently updated the wiki page on this:
>>
>> http://trac.osgeo.org/fusion/wiki/MapGuideCommercialOverlays
>>
>> Jason
>>
>> ________________________________
>> From: Arthur Liu
>> Sent: Thursday, July 16, 2009 8:18 PM
>> Subject: [fusion-dev] Integrate Commercial Map Service Layers Problem
>>
>> Is there anyone successfully integrated Yahoo or Virtual Earth in  
>> MapGuide?
>> I always got failed with error message as  
>> "OpenLayers.Layer[this.layerType](...)" is not a constructor,  
>> unless I add the script for openlayers(<script type="text/
>> javascript" src="http://www.openlayers.org/api/OpenLayers.js"></
>> script>) into the index.html in MG template .  Any suggestions and  
>> comments are very appreciated. Thanks.
>>
>> BTW, Google Layers doesn't has such kind of problem.
>>
>> Regards,
>> Arthur
>> _______________________________________________
>> fusion-dev mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/fusion-dev
>>
>
>
>
> --
> Zac Spitzer -
> http://zacster.blogspot.com
> +61 405 847 168
> _______________________________________________
> fusion-dev mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-dev


__________________________________________

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

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

RE: RE: Integrate Commercial Map Service Layers Problem

Reply Threaded More More options
Print post
Permalink
Thank you all :)

Arthur
-----Original Message-----
From: Paul Spencer [mailto:[hidden email]]
Sent: Friday, July 17, 2009 6:22 PM
To: Arthur Liu
Cc: Jason Birch; [hidden email]; Zac Spitzer; Zak James
Subject: Re: [fusion-dev] RE: Integrate Commercial Map Service Layers Problem

It was Zak :)  I suspect that the OpenLayers build included in Fusion  
does not contain all the commercial map types, I will check with Zak  
on this today.

Paul

On 17-Jul-09, at 3:16 AM, Zac Spitzer wrote:

> I didn't do the wiki page  :)
>
> fusion uses a a profile to reduce the size of the file, all of OL is  
> like 1mb..
>
> http://trac.openlayers.org/wiki/Profiles
>
> the build script for fusion will have a .cfg file which is called  
> during the
> build process, you will need to locate that in the fusion tree and add
> in the layers you need
>
> http://trac.osgeo.org/fusion/browser/trunk/fusion.cfg
>
> remember you cannot use commerical maps with a password protected  
> site,
> subject to licensing
>
> z
>
> On Fri, Jul 17, 2009 at 4:55 PM, Arthur Liu<[hidden email]>  
> wrote:
>> Thanks for your reply.
>> I am using the lasted revision but still have that problem.
>>
>> Regards,
>> Arthur
>>
>> -----Original Message-----
>> From: Jason Birch [mailto:[hidden email]]
>> Sent: Friday, July 17, 2009 12:02 PM
>> To: Arthur Liu; [hidden email]
>> Subject: RE: Integrate Commercial Map Service Layers Problem
>>
>> Hey Arthur,
>>
>> Are you using Fusion trunk?  I believe that there were some defects  
>> or maybe missing code that prevented this from working with  
>> previous versions.
>>
>> Zac recently updated the wiki page on this:
>>
>> http://trac.osgeo.org/fusion/wiki/MapGuideCommercialOverlays
>>
>> Jason
>>
>> ________________________________
>> From: Arthur Liu
>> Sent: Thursday, July 16, 2009 8:18 PM
>> Subject: [fusion-dev] Integrate Commercial Map Service Layers Problem
>>
>> Is there anyone successfully integrated Yahoo or Virtual Earth in  
>> MapGuide?
>> I always got failed with error message as  
>> "OpenLayers.Layer[this.layerType](...)" is not a constructor,  
>> unless I add the script for openlayers(<script type="text/
>> javascript" src="http://www.openlayers.org/api/OpenLayers.js"></
>> script>) into the index.html in MG template .  Any suggestions and  
>> comments are very appreciated. Thanks.
>>
>> BTW, Google Layers doesn't has such kind of problem.
>>
>> Regards,
>> Arthur
>> _______________________________________________
>> fusion-dev mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/fusion-dev
>>
>
>
>
> --
> Zac Spitzer -
> http://zacster.blogspot.com
> +61 405 847 168
> _______________________________________________
> fusion-dev mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-dev


__________________________________________

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

_______________________________________________
fusion-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-dev
Zak James-2

RE: Integrate Commercial Map Service Layers Problem

Reply Threaded More More options
Print post
Permalink
In reply to this post by Arthur Liu
That's right. The Yahoo and Virtual Earth layer types need to be added. There is also some other code needed to make everything work as advertised that I haven't yet committed.

Sorry for the confusion.

Zak

--
Zak James
Applications and Software Development
DM Solutions Group Inc.
http://www.dmsolutions.ca
http://research.dmsolutions.ca

-----Original Message-----
From: Paul Spencer
Sent:  17/07/2009 06:22:10
To: Arthur Liu
Cc: Jason Birch; [hidden email]; Zac Spitzer; Zak James
Subject:  Re: [fusion-dev] RE: Integrate Commercial Map Service Layers Problem

It was Zak :)  I suspect that the OpenLayers build included in Fusion  
does not contain all the commercial map types, I will check with Zak  
on this today.

Paul

On 17-Jul-09, at 3:16 AM, Zac Spitzer wrote:

> I didn't do the wiki page  :)
>
> fusion uses a a profile to reduce the size of the file, all of OL is  
> like 1mb..
>
> http://trac.openlayers.org/wiki/Profiles
>
> the build script for fusion will have a .cfg file which is called  
> during the
> build process, you will need to locate that in the fusion tree and add
> in the layers you need
>
> http://trac.osgeo.org/fusion/browser/trunk/fusion.cfg
>
> remember you cannot use commerical maps with a password protected  
> site,
> subject to licensing
>
> z
>
> On Fri, Jul 17, 2009 at 4:55 PM, Arthur Liu<[hidden email]>  
> wrote:
>> Thanks for your reply.
>> I am using the lasted revision but still have that problem.
>>
>> Regards,
>> Arthur
>>
>> -----Original Message-----
>> From: Jason Birch [mailto:[hidden email]]
>> Sent: Friday, July 17, 2009 12:02 PM
>> To: Arthur Liu; [hidden email]
>> Subject: RE: Integrate Commercial Map Service Layers Problem
>>
>> Hey Arthur,
>>
>> Are you using Fusion trunk?  I believe that there were some defects  
>> or maybe missing code that prevented this from working with  
>> previous versions.
>>
>> Zac recently updated the wiki page on this:
>>
>> http://trac.osgeo.org/fusion/wiki/MapGuideCommercialOverlays
>>
>> Jason
>>
>> ________________________________
>> From: Arthur Liu
>> Sent: Thursday, July 16, 2009 8:18 PM
>> Subject: [fusion-dev] Integrate Commercial Map Service Layers Problem
>>
>> Is there anyone successfully integrated Yahoo or Virtual Earth in  
>> MapGuide?
>> I always got failed with error message as  
>> "OpenLayers.Layer[this.layerType](...)" is not a constructor,  
>> unless I add the script for openlayers(<script type="text/
>> javascript" src="http://www.openlayers.org/api/OpenLayers.js"></
>> script>) into the index.html in MG template .  Any suggestions and  
>> comments are very appreciated. Thanks.
>>
>> BTW, Google Layers doesn't has such kind of problem.
>>
>> Regards,
>> Arthur
>> _______________________________________________
>> fusion-dev mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/fusion-dev
>>
>
>
>
> --
> Zac Spitzer -
> http://zacster.blogspot.com
> +61 405 847 168
> _______________________________________________
> fusion-dev mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-dev


__________________________________________

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


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

RE: RE: Integrate Commercial Map Service Layers Problem

Reply Threaded More More options
Print post
Permalink
In reply to this post by Paul Spencer-2
Paul Spencer wrote:
> It was Zak :)

Dang it...

Could one of you change your name please?

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