[fusion-dev] InitialView?
Jason Birch
Jason.Birch at nanaimo.ca
Mon Apr 7 11:54:08 EDT 2008
Thanks Paul, I'll update the docs to describe InitialView.
Just noticed something else odd. The ApplicationDefinition in the docs
directory:
http://trac.osgeo.org/fusion/browser/trunk/docs/ApplicationDefinition.xm
l
uses Map and Layer instead of MapGroup and Map. Is this correct? Does
this document need to be there?
Jason
-----Original Message-----
From: Paul Spencer [mailto:pspencer at dmsolutions.ca]
Sent: Monday, April 07, 2008 08:34
To: Jason Birch
Cc: fusion-dev at lists.osgeo.org
Subject: Re: [fusion-dev] InitialView?
Jason,
just checked the code, it will look for CenterX, CenterY and Scale and
if *all* are present it will use them, otherwise it looks for MinX,
MinY, MaxX, MaxY and if *all* are present it will use them.
If any of the values are missing from a group, it will ignore that
group.
It will use CenterX, CenterY, Scale in preference to the extent
version if both exist.
Sounds like the schema needs an update.
Cheers
Paul
On 7-Apr-08, at 11:14 AM, Jason Birch wrote:
> Hi there,
>
> I have a fusion map that uses InitialView of a MapGroup like this:
>
> <MapGroup id="NanaimoCemeteries">
> <InitialView>
> <MinX>430379</MinX>
> <MinY>5446616</MinY>
> <MaxX>430541</MaxX>
> <MaxY>5446915</MaxY>
> </InitialView>
> [...]
> </MapGroup>
>
> But the schema's type for InitialView is MapViewType:
>
> <xs:complexType name="MapViewType">
> <xs:sequence>
> <xs:element name="CenterX" type="xs:double"/>
> <xs:element name="CenterY" type="xs:double"/>
> <xs:element name="Scale" type="xs:double"/>
> </xs:sequence>
> </xs:complexType>
>
> Neither of these are documented (yet):
>
> http://trac.osgeo.org/fusion/wiki/ApplicationDefinition/MapSet/
> MapGroup
>
> I'd be happy to write both up if someone can clarify that they are
> both
> acceptable. I certainly wouldn't want to see the extents version go
> away; midpoint+scale doesn't allow you to ensure that a specific
> object
> will stay on the screen on various resolutions, etc.
>
> Jason
>
> _______________________________________________
> fusion-dev mailing list
> fusion-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/fusion-dev
__________________________________________
Paul Spencer
Chief Technology Officer
DM Solutions Group Inc
http://www.dmsolutions.ca/
More information about the fusion-dev
mailing list