Re[mapguide-users] dlining error

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Fri Jul 18 07:59:51 EDT 2008


What do you mean?

There is no MgServiceType declared in JavaScript?
You wrote that you used VB.Net in the original post.

You cannot use any of the Mg* classes from JavaScript because they are 
server side components.

Regards, Kenneth Skovhede, GEOGRAF A/S



Marius_360 skrev:
> I am using JavaScript :
> var featureService =
> siteConnection.CreateService(MgServiceType.FeatureService);
>
> featureService.CreateFeatureSource(resourceIdentifier, sdfParams);
>
>
>
> Kenneth Skovhede, GEOGRAF A/S wrote:
>   
>> How do you construct the featureService variable?
>>
>> You should do something like:
>>
>> Dim featureService as MgFeatureService  = 
>> connection.CreateService(MgServiceType.FeatureService)
>> featureService.CreateFeatureSource(...., ....)
>>
>>
>> Regards, Kenneth Skovhede, GEOGRAF A/S
>>
>>
>>
>> Marius_360 skrev:
>>     
>>> Hi
>>>
>>> I need to develop a redlining application for a client using VB.Net and
>>> JavaScript.
>>> I converted the demo code available, but get stuck with the
>>> “featureService.CreateFeatureSource” command, it gives me a “Objects of
>>> type
>>> 'OSGeo.MapGuide.MgService' do not have such a member” error
>>>
>>> Marius
>>>   
>>>       
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>>
>>     
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080718/eaf3bb01/attachment.html


More information about the mapguide-users mailing list