RE: [mapguide-users] Re: Strange behaviour with labels in Mapguide. Help needed.

2010-03-04 Thread Dave Wilson
Have you compared the layer definition.xml to see if there are any odd 
differences?

Dave

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of JamesDudden
Sent: Thursday, March 04, 2010 10:12 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Re: Strange behaviour with labels in Mapguide. Help 
needed.


Not when I import them as an SDF. The weird thing is, if I import the same
file saved as a dwg then the labels work as they should.

Regards
JD

-
http://www.software-matters.co.uk Software Matters  - 
http://www.software-matters.co.uk/bespoke-database-design.html Bespoke
Database  and Software Solutions
-- 
View this message in context: 
http://n2.nabble.com/Strange-behaviour-with-labels-in-Mapguide-Help-needed-tp4673228p4675695.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Strange behaviour with labels in Mapguide. Help needed.

2010-03-04 Thread JamesDudden

Not when I import them as an SDF. The weird thing is, if I import the same
file saved as a dwg then the labels work as they should.

Regards
JD

-
http://www.software-matters.co.uk Software Matters  - 
http://www.software-matters.co.uk/bespoke-database-design.html Bespoke
Database  and Software Solutions
-- 
View this message in context: 
http://n2.nabble.com/Strange-behaviour-with-labels-in-Mapguide-Help-needed-tp4673228p4675695.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] Re: Strange behaviour with labels in Mapguide. Help needed.

2010-03-04 Thread Dave Wilson
The default behavior for polygon labels is to be generated with regards to the 
centroid of the visible portion of the polygon. Your labels aren't doing this?

Dave

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of JamesDudden
Sent: Thursday, March 04, 2010 9:20 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Re: Strange behaviour with labels in Mapguide. Help 
needed.


It's definitely imported as a polygon because I can select it.

Any other thoughts?
Does anybnody else see this happening?

Regards
JD

-
http://www.software-matters.co.uk Software Matters  - 
http://www.software-matters.co.uk/bespoke-database-design.html Bespoke
Database  and Software Solutions
-- 
View this message in context: 
http://n2.nabble.com/Strange-behaviour-with-labels-in-Mapguide-Help-needed-tp4673228p4675336.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Strange behaviour with labels in Mapguide. Help needed.

2010-03-04 Thread JamesDudden

It's definitely imported as a polygon because I can select it.

Any other thoughts?
Does anybnody else see this happening?

Regards
JD

-
http://www.software-matters.co.uk Software Matters  - 
http://www.software-matters.co.uk/bespoke-database-design.html Bespoke
Database  and Software Solutions
-- 
View this message in context: 
http://n2.nabble.com/Strange-behaviour-with-labels-in-Mapguide-Help-needed-tp4673228p4675336.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] Re: Strange behaviour with labels in Mapguide. Help needed.

2010-03-04 Thread Dave Wilson
Is it possible the objects have been converted to a point/text object on import?

Dave

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of JamesDudden
Sent: Thursday, March 04, 2010 3:35 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Re: Strange behaviour with labels in Mapguide. Help 
needed.


No,
It was a straight import in to MG Studio with no theming.

-
http://www.software-matters.co.uk Software Matters  - 
http://www.software-matters.co.uk/bespoke-database-design.html Bespoke
Database  and Software Solutions
-- 
View this message in context: 
http://n2.nabble.com/Strange-behaviour-with-labels-in-Mapguide-Help-needed-tp4673228p4673476.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Re: Redline Text

2010-03-04 Thread Kenneth Skovhede, GEOGRAF A/S

You should use a click tool.
If you use the Ajax viewer, the function is called DigitizePoint,
not sure what the equivalent is in Fusion, but you can load some
MapGuide compatibility script if you can't find the right one.

In the callback handler you will get the x/y value of the point that
the user has clicked (in mapping coordinate system (MCS) values).

You then need to send the value to the server, using AJAX or a form post 
or similar.


On the server, if you have a database, simply insert the record as you 
would normaly,

using an SQL INSERT statement.

If you are not using a database (or want to support multiple datasource 
types), you can

use the MapGuide MgUpdateFeatures functions:
http://www.osgeo.org/files/mapguide/docs/webapi/d5/d10/class_mg_feature_service_278b25e5af6145f091457701fec788dd.htm#278b25e5af6145f091457701fec788dd

And specifically:
http://www.osgeo.org/files/mapguide/docs/webapi/d4/d63/class_mg_insert_features.htm

Regards, Kenneth Skovhede, GEOGRAF A/S

On 04-03-2010 09:14, Twi wrote:

I have a datasource with a layer that looks
my annotations.
The problem how to liaison between the click of
the user and insert the annotation database?
Thank you
   

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


[mapguide-users] Re: Strange behaviour with labels in Mapguide. Help needed.

2010-03-04 Thread JamesDudden

No,
It was a straight import in to MG Studio with no theming.

-
http://www.software-matters.co.uk Software Matters  - 
http://www.software-matters.co.uk/bespoke-database-design.html Bespoke
Database  and Software Solutions
-- 
View this message in context: 
http://n2.nabble.com/Strange-behaviour-with-labels-in-Mapguide-Help-needed-tp4673228p4673476.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] Re: Strange behaviour with labels in Mapguide. Help needed.

2010-03-04 Thread Jackie Ng

Is this SDF joined to something else?

- Jackie
-- 
View this message in context: 
http://n2.nabble.com/Strange-behaviour-with-labels-in-Mapguide-Help-needed-tp4673228p4673237.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] Strange behaviour with labels in Mapguide. Help needed.

2010-03-04 Thread JamesDudden

Hi,
I’m getting some strange behaviour with labels in Mapguide – basically when
using a DWG the label is dynamic and moves when you move the map but with an
SDF it is fixed in the centre which means if you move the map you lose the
label!

I have tried fiddling with all the settings but always get the same result.
I am using MG Studio 9 and MG 2.02 but have also tested this with MG 2.1 and
it's the same.

Has anybody else come across this?
Does anybody know whay and is there a fix for this?

Any help or advice is always welcome

Regards
JD

-
http://www.software-matters.co.uk Software Matters  - 
http://www.software-matters.co.uk/bespoke-database-design.html Bespoke
Database  and Software Solutions
-- 
View this message in context: 
http://n2.nabble.com/Strange-behaviour-with-labels-in-Mapguide-Help-needed-tp4673228p4673228.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] Re: Redline Text

2010-03-04 Thread Twi

I have a datasource with a layer that looks
my annotations.
The problem how to liaison between the click of
the user and insert the annotation database?
Thank you
-- 
View this message in context: 
http://n2.nabble.com/Redline-Text-tp4670813p4672961.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] Redline Text

2010-03-04 Thread Kenneth Skovhede, GEOGRAF A/S

You need:
1) A data connection (FeatureSource) that you can write to.
2) A column in the datasource that can contain the text
3) A layer that is set up to display the labels from the column

Then, for each time the user clicks, simply insert a record in the 
datasource,

and refresh the map.

Since you mention redline, I assume that you already have the datasource,
you just need a spare column and a layer.

Regards, Kenneth Skovhede, GEOGRAF A/S

On 03-03-2010 23:01, Twi wrote:

I want to create annotations when the user clicks on the map.
I started programming. NET on the redlines.
Where to start?
Have you documented?
Thank you
   

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


Re: [mapguide-users] Re: Maestro Api runtime map selection

2010-03-04 Thread Kenneth Skovhede, GEOGRAF A/S

The MgFeatureService has a CreateFeatureSource method:
http://www.osgeo.org/files/mapguide/docs/webapi/d5/d10/class_mg_feature_service_8401551df70ab47d9c107985b9f5283f.htm#8401551df70ab47d9c107985b9f5283f

Unfortunately it is only possible to give it a MgCreateSdfParams object, 
so you can only create SDF datastores:

http://www.osgeo.org/files/mapguide/docs/webapi/d8/dd5/class_mg_create_sdf_params.htm

Regards, Kenneth Skovhede, GEOGRAF A/S

On 03-03-2010 21:55, Jamo wrote:

Cheers Kenneth,

I really like the selection api :) will make life a little easier in places
for me.
Bummer about the creation of datastores but I'm sure I will find a way.

Anyone have any FDO examples?, I have not used the FDO api as of yet to
produce datstores...

First test seems to bomb out with a exception 
External component has thrown an exception.

 IProviderRegistry r = FeatureAccessManager.GetProviderRegistry();
 IConnectionManager cm = FeatureAccessManager.GetConnectionManager();

 providers = r.GetProviders();

I think it's something to do with the DLLs in the Bin dir, I have reduced
the providers to SHP and SDF in the xml file this is stored in the bin dir
 can I store these fdo components in it's own directory, this would only
be for organising the site.

Are there any specific dlls I require for the SHP / SDF providers to be
stored in the same location?
   

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