Re: [mapguide-users] ZoomToView

2012-09-10 Thread veer-singh
Thanks gordon for replying..

i am looking for something else like "zoom to specified view port on initial
load of web layout ", i am able to implement the same but not able to see
the selection on map. i am using the method ChangeInitialViewInWebLayout()
to append "InitialView" tag in XML to zoom, my question here is what is the
xml format for adding selection tag in same, so that queries object is
selected on map.

Regards




-
VEER HCLTECH,INDIA
--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/ZoomToView-tp4999411p5000973.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] MapGuide Open Source 2.4 RC2 released

2012-09-10 Thread Jackie Ng
We are pleased to announce that the MapGuide Open Source project team has
made MapGuide Open Source 2.4 RC2 available

Release notes: http://trac.osgeo.org/mapguide/wiki/Release/2.4/Notes
Downloads:
http://trac.osgeo.org/mapguide/wiki/Release/2.4/Notes#Installation
Documentation: Updated Developer's Guide, API reference documentation and
sample code are now included with the installer. The release notes contain
information on API changes between MapGuide 2.2 and MapGuide 2.4

If you find a defect, please report it using http://trac.osgeo.org/mapguide
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] ZoomToView

2012-09-10 Thread GordonL
Since you are using the AJAX version its a little harder to zoom in on load
since there is not a URL Parameter like the Fusion site (extent=)

So you will have to do a little work:
1. First catch the X and Y you are passing for example X=-115.443&Y=45.8789



2. Then set up EVENT HOOKING to call your zoomtoview when
OnMapInitialized()(http://trac.osgeo.org/mapguide/wiki/CodeSamples/JavaScript/AJAXViewerEventHooking)

The zoom to view can be called once the map is finished loading...

gordon






--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/ZoomToView-tp4999411p5000965.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Creation of a FeatureSource

2012-09-10 Thread Jérôme DUCKERS
I'v founded my mistake, it was an error on the name.

Thanks for your help Gordon.

Best Regards
Jérôme.



2012/9/10 jerome.duckers 

>  Hi Gordon,
>
> Thanks
>
> You have right. If i change to Library => the data is correctly created in
> Maestro, and everything is good.
> The Layer is drawing.
>
>
> I see that in my layerTemplate, it was :
>Library://{0}.FeatureSource
>
> I think that's the reason why i did'nt see the draw in my map.
> So, i try to replace the
>Library://{0}.FeatureSource
>  by
>   Session:{0}//{1}.FeatureSource
> // where {0} is the sessionId
>
> {1} the name
>
> but nothing on screen :(
>
> I am always searching.
>
>
>
> 2012/9/10 GordonL [via OSGeo.org] <[hidden 
> email]
> >
>
> I  tend to create permanent Library connections and layers when debugging,
>> so i can debug them in Maestro.
>>
>> change your lines where you have 'Session' to Library
>>
>>  string resourceId = string.Format("Session:{0}//{ 1}" ,sessionId, name);
>>
>>  string resourceId = string.Format("Library://{0}", name);
>>
>> for example.
>>
>>
>>
>> --
>>  If you reply to this email, your message will be added to the
>> discussion below:
>>
>> http://osgeo-org.1560.n6.nabble.com/Creation-of-a-FeatureSource-tp5000822p5000824.html
>> To unsubscribe from Creation of a FeatureSource, click here.
>> NAML
>>
>
>
> --
> View this message in context: Re: Creation of a 
> FeatureSource
> Sent from the MapGuide Users mailing list 
> archiveat 
> Nabble.com.
>
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Creation of a FeatureSource

2012-09-10 Thread jerome.duckers
Hi Gordon,

Thanks

You have right. If i change to Library => the data is correctly created in
Maestro, and everything is good.
The Layer is drawing.


I see that in my layerTemplate, it was :
   Library://{0}.FeatureSource

I think that's the reason why i did'nt see the draw in my map.
So, i try to replace the
   Library://{0}.FeatureSource
 by
  Session:{0}//{1}.FeatureSource
// where {0} is the sessionId

{1} the name

but nothing on screen :(

I am always searching.



2012/9/10 GordonL [via OSGeo.org] 

> I  tend to create permanent Library connections and layers when debugging,
> so i can debug them in Maestro.
>
> change your lines where you have 'Session' to Library
>
>  string resourceId = string.Format("Session:{0}//{ 1}" ,sessionId, name);
>
>  string resourceId = string.Format("Library://{0}", name);
>
> for example.
>
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://osgeo-org.1560.n6.nabble.com/Creation-of-a-FeatureSource-tp5000822p5000824.html
> To unsubscribe from Creation of a FeatureSource, click 
> here
> .
> NAML
>




--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Creation-of-a-FeatureSource-tp5000822p5000927.html
Sent from the MapGuide Users mailing list archive at Nabble.com.___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Marc J Ethier/EWU/Windsor is out of the office.

2012-09-10 Thread methier

I will be out of the office starting  2012-09-09 and will not return until
2012-09-12.

I will respond to your message when I return.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Creation of a FeatureSource

2012-09-10 Thread GordonL
I  tend to create permanent Library connections and layers when debugging, so
i can debug them in Maestro.

change your lines where you have 'Session' to Library

 string resourceId = string.Format("Session:{0}//{ 1}" ,sessionId, name);

 string resourceId = string.Format("Library://{0}", name);

for example.





--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Creation-of-a-FeatureSource-tp5000822p5000824.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Creation of a FeatureSource

2012-09-10 Thread jerome.duckers
Hi,
 
I have a problem to create a FeatureSource with the MgResourceService
 
My Code is very simple: 
 
string xml =  DynamicLayer.GetTemplate("MgData_test.templ");
 
MgResourceIdentifier dataId =
DynamicLayer.SaveSessionResource("test.FeatureSource", xml, sessionId,
resourceSrvc);
xml = DynamicLayer.GetTemplate("MgLayer_test.templ");
MgResourceIdentifier layerId =
DynamicLayer.SaveSessionResource("test.LayerDefinition", xml, sessionId,
resourceSrvc);
new
MgLayer(layerId, resourceSrvc); 
...
map.Save(resourceSrvc, mapStateId);
the function SaveSessionResource is: 
public
static MgResourceIdentifier SaveSessionResource(string name, string content,
string sessionId, MgResourceService resourceService) 
{
string resourceId = string.Format("Session:{0}//{1}" ,sessionId, name); 
var mgResourceIdentifier = new MgResourceIdentifier(resourceId); 
resourceService.SetResource(mgResourceIdentifier, 
new MgByteReader(content, "text/xml"), null); 
return mgResourceIdentifier; 
}
 


The Layer appears in my legend, everything is correct, but nothing appears
on the map. 
I thing that the featureSource is not created ! I miss something ?
I try to create in Maestro a Layer based on my FeatureSource, but nothing
appears.
The featureSource is based on a SDF, that is not empty.
 
 
Thanks a lot.
Best Regards.
Jérôme.



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Creation-of-a-FeatureSource-tp5000822.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users