Re: [ZS1] Re: [mapguide-users] [ZS1] Drawing order of layers in a map

2007-10-31 Thread Kenneth, GEOGRAF A/S

Have you tried calling the NeedsRefresh property on the layer?


Im just guessing, but the AJAX viewer is probably creating a new session.
If this is correct, your map is not avalible from within the session 
created by the viewer.


Also, be aware that there are TWO types of maps, one called a 
MapDefintion which is XML based, and another called Runtime Map 
(sometime just Map) which is binary.

You cannot use a Runtime map as a mapdefinition in the WebLayout.

Regards, Kenneth, GEOGRAF A/S



m.karam skrev:

thanks for your reply
I tried that ..
but sometimes, the features of the layer that i remove, don't appear unless
i refresh that layer from the legend


i tried another solution ..
to change the layers order in the map definition and save it in the session.
And also, update the web layout by changing the ResourceId of the map.
Now, I have a map definition and web layout in the session

but when i pass the new web layout to the viewer, it gives me an error
message:
MgInvalidMapDefinitionException

what will i do for this error?
Is that any error in the XML of the map definition?
please help ...
Karam



Kenneth, GEOGRAF A/S wrote:
  

Hmm, I see... For some reason this property is not avalible in the API.

You can remove it from the layers collection (code in C#):
MgMap map = ..;
MgMapLayerCollection col = map.GetLayers();
MgMapLayer layer= (MgMapLayer)col[0];
col.RemoveAt(0);
col.Insert(col.Count - 1, layer)
map.Save(...);

That will move the first layer down to the last position.



Regards, Kenneth, GEOGRAF A/S



m.karam skrev:


the layers don't have a DisplayOrder property...



Kenneth, GEOGRAF A/S wrote:
  
  

I belive that the layers have a DisplayOrder property.
So do:

1. Load runtime map
2. Change DisplayOrder property of layers
3. Save runtime map
4. Refresh client display

Regards, Kenneth, GEOGRAF A/S



m.karam skrev:



Hi everybody

I want to change the (Drawing Order) of the Map Layers at run-time
according
to a specific conditions
How can i do it?

Thanks in advance
Karam
  
  
  

___
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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Making Temporary Markups

2007-10-31 Thread Jackie Ng

I'm writing an example up on this page.

http://trac.osgeo.org/mapguide/wiki/CodeSamples

watch this space.

- Jackie


Denis Lalonde-2 wrote:
 
 Is there sample code for creating map markups/redlining that are saved to
 the session only and not directly to the Library in Repositories?
 
 
 Alternatively, can someone point me in the right direction as to what to
 change in the Shareable Markup Sample site (
 http://data.mapguide.com/mapguide/gt/index.php) so that I can create a
 temporary layer rather than one of the permanent layers listed in the
 Available Markup combo-box?
 
 Thanks
 
 ___
 mapguide-users mailing list
 mapguide-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapguide-users
 
 

-- 
View this message in context: 
http://www.nabble.com/Making-Temporary-Markups-tf4722641s16610.html#a13504794
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] fresh a specific layer

2007-10-31 Thread m.karam

Hi

I want to refresh a specific layer from the legend, by code (server or
client).
I use DWF Viewer.
Karam


-- 
View this message in context: 
http://www.nabble.com/Refresh-a-specific-layer-tf4724550s16610.html#a13507683
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] mssqlspatial MgFeatureReader

2007-10-31 Thread Berdel, Brian
Anyone have any experience with this? I am trying to use the
mgFeatureReader with a MsSQLSpatial DataSource and it keeps returning a
null exception.   Is there another method to return data that I should
be using when with a MsSQLSpatial connection?

Brian  Berdel 
McMahon Associates, Inc. 
p: 215.283.9444
www.mcmtrans.com 


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


[mapguide-users] Hyperlink

2007-10-31 Thread Steve Skarbowski
Can you hyperlink a field in the data table?  And how?
[EMAIL PROTECTED]

GIS Solutions Engineer AEC Team, AEC Solutions Team
Synergis Engineering Design Solutions
A Division of Synergis Technologies, Inc.
472 California Road, Suite 100 :: Quakertown, PA :: 18951

main office: 800-836-5440 x238

fax: 215-536-9249


www.synergis.com


This message (and any associated files) is intended only for the use of the 
individual or entity to which it is addressed and may contain information that 
is confidential, subject to copyright or constitutes a trade secret. If you are 
not the intended recipient you are hereby notified that any dissemination, 
copying or distribution of this message, or files associated with this message, 
is strictly prohibited. If you have received this message in error, please 
notify us immediately by replying to the message and deleting it from your 
computer. Messages sent to and from us may be monitored.

Internet communications cannot be guaranteed to be secure or error-free as 
information could be intercepted, corrupted, lost, destroyed, arrive late or 
incomplete, or contain viruses. Therefore, we do not accept responsibility for 
any errors or omissions that are present in this message, or any attachment, 
that have arisen as a result of e-mail transmission. If verification is 
required, please request a hard-copy version. Any views or opinions presented 
are solely those of the author and do not necessarily represent those of the 
company.
inline: aec-outgoing-logo.gif___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Hyperlink

2007-10-31 Thread Ryan Northcott
Hello,

If that database field is in a URL format, or a referenced URL (ie.
http://google.com, or /appname/default.aspx)  then in the Layer properties
you set the URL to be that field in the DB, and then the Map Layout I
believe handles where the URL clicked get processed (task pane, new window,
frame name, etc.)

I made a URL field in my shapefile before importing to MGOS with
/MapQuery.aspx?GISID=1930383  that has a different GISID parameter so that
when the URL is chosen, the MapQuery page reads a database and returns the
info for that GISID.

Whenever I update/recreate the shapefile, I simply run an update query on
that URL column to pull any changed IDs over so they will link.

I hope this is what you were referencing to.

-Ryan

On 10/31/07, Steve Skarbowski [EMAIL PROTECTED] wrote:

   Can you hyperlink a field in the data table?  And how?

  [EMAIL PROTECTED]
 --
 GIS Solutions Engineer AEC Team, AEC Solutions Team
 Synergis Engineering Design Solutions
 A Division of Synergis Technologies, Inc.
 472 California Road, Suite 100 :: Quakertown, PA :: 18951

 main office: 800-836-5440 x238
 fax: 215-536-9249
  www.synergis.com

 [image:
 http://www.synergis.com/files/events/seminars/events_seminars_autodesk_university.shtml]http://www.synergis.com/files/events/seminars/events_seminars_autodesk_university.shtml

  This message (and any associated files) is intended only for the use of
 the individual or entity to which it is addressed and may contain
 information that is confidential, subject to copyright or constitutes a
 trade secret. If you are not the intended recipient you are hereby notified
 that any dissemination, copying or distribution of this message, or files
 associated with this message, is strictly prohibited. If you have received
 this message in error, please notify us immediately by replying to the
 message and deleting it from your computer. Messages sent to and from us may
 be monitored.

 Internet communications cannot be guaranteed to be secure or error-free as
 information could be intercepted, corrupted, lost, destroyed, arrive late or
 incomplete, or contain viruses. Therefore, we do not accept responsibility
 for any errors or omissions that are present in this message, or any
 attachment, that have arisen as a result of e-mail transmission. If
 verification is required, please request a hard-copy version. Any views or
 opinions presented are solely those of the author and do not necessarily
 represent those of the company.




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


aec-outgoing-logo.gif___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Best method to use dwg files

2007-10-31 Thread Marty Coonrod

Andy, Thanks for the reply and please excuse my ignorance in this area.
The maps are 15 deg tile maps that cover 4 adjoining states. These were then
further broke out into a master grid to fit the 3000' x 2000' map size.
Then information was drafted on these. I can't use the originals because
when errors were found or a subdivision that was missing was added they were
not placed on their own layer. This is not quite the way I would have done
things but we work with what we have.
There is a layering standard but as with most major projects there will be
some clean up. The layer count is 191 layers but each map has some temp
layers that will need to be purged. Most of the layers have only one type of
information lines, blocks, text, etc. but there are a couple that mix lines
and blocks and I am guessing I may want to change that. All of the blocks
have some type of attribute information or another that would be nice to be
able to retrive.
I have a program I developed that will extract/inject all the attribute
information to/from a SQL Server database.
I have recieved my Mapguide CD from Autodesk and installed Mapguide
Enterprise 2008 Server and Studio trials and went through the exercises that
were provided in the Getting Started Guide. That is the extent of my
training but I understand the concept somewhat. This is something I am doing
on my own so its not company funded yet so I plan to switch to the open
source server. I just used the Autodesk version for the exercises because a
couple things did'nt work without it. Hopefully I can at least get them to
spring for the studio portion if that is sold seperately.

After all that rambling on what I am looking for is just some advice as how
to aproach it so I don't just make a huge mess and have to start over again
and again.

Thanks,
Marty


Andy Morsell wrote:
 
 There are many potential approaches to this depending on the source data.
 Are these 10,000 maps actually tiled maps that you would like to display
 on
 one MapGuide map?  Such as individual USGS T-R grids that are
 edge-matched?
 Or, are they completely independent of one another and would be separate
 MapGuide maps?  Are there consistent layering standards for all of the
 DWG's?
 
 Andy Morsell, P.E. 
 Spatial Integrators, Inc. 
 http://www.SpatialGIS.com 
 
   _  
 
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Marty Coonrod
 Sent: Tuesday, October 30, 2007 10:04 AM
 To: mapguide-users@lists.osgeo.org
 Subject: [mapguide-users] Best method to use dwg files
 
 
 
 I have a lot of maps (approx 10,000) that were created in AutoCAD. The
 dimensions are 3000' x 2000' and were created using USGS base. I would
 like
 to bring all of this data into Mapguide and was wondering what the best
 approach would be. I have AutoCAD, AutoCAD Map 3D, Mapguide studio to use.
 I
 am just not sure if I should create larger files or try to move some of
 the
 data to a database. 
 I would still like to edit the maps and update the server when necessary. 
 
 Marty
 
 
 ___
 mapguide-users mailing list
 mapguide-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapguide-users
 
 

-- 
View this message in context: 
http://www.nabble.com/Best-method-to-use-dwg-files-tf4719897s16610.html#a13514509
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] Fluctuating Cursor Accuracy

2007-10-31 Thread Jason Birch
Sounds like it is related to (or maybe even the same as)

http://trac.osgeo.org/mapguide/ticket/5

http://trac.osgeo.org/mapguide/ticket/223

Jason 

-Original Message-
From: IT-Joe Marvin
Subject: RE: [mapguide-users] Fluctuating Cursor Accuracy

So I gather then that there is nothing the developer can do to detect or
stop this.  Do you know if a bug report been filed?  I looked through
and do not see anything.  If not, I will submit one.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Fluctuating Cursor Accuracy

2007-10-31 Thread IT-Joe Marvin
So I gather then that there is nothing the developer can do to detect or
stop this.  Do you know if a bug report been filed?  I looked through
and do not see anything.  If not, I will submit one.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jackie Ng
Sent: Tuesday, October 30, 2007 4:44 PM
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] Fluctuating Cursor Accuracy


We get this problem sometimes, the whitespace causes displacement of the
map,
throwing off the accuracy of the selection tools.

If you resize any part of the ajax viewer that would cause a resize of
the
map pane, the whitespace will disappear and your selection accuracy
should
be restored.

- Jackie


joecm wrote:
 
 Yes there is. 
 
 -joe
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Jackie Ng
 Sent: Tuesday, October 30, 2007 3:54 PM
 To: mapguide-users@lists.osgeo.org
 Subject: Re: [mapguide-users] Fluctuating Cursor Accuracy
 
 
 Is there whitespace at the top of your AJAX viewer? (below the
toolbar)
 
 - Jackie
 
 
 joecm wrote:
 
 When using an AJAX map, cursor is not always aligned properly.  
 
  
 
 For example,  if I go to select a polygon, sometimes the polygon on
 the
 tail or middle of the cursor is selected, instead of the point of the
 cursor.It seems to vary each time I load the page, sometimes it
is
 correct, other times it is not.  This is very confusing to users who
 think they are clicking on one polygon and actually clicking on
 another.
 
  
 
 Has anyone else encountered this problem, or even better, found a
fix?
 
  
 
 Thanks
 
 
 ___
 mapguide-users mailing list
 mapguide-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapguide-users
 
 
 
 -- 
 View this message in context:

http://www.nabble.com/Best-method-to-use-dwg-files-tf4719897s16610.html#
 a13499525
 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
 
 

-- 
View this message in context:
http://www.nabble.com/Best-method-to-use-dwg-files-tf4719897s16610.html#
a13500077
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] Fluctuating Cursor Accuracy

2007-10-31 Thread Andy Morsell
Along the same lines and for those who might be affected, we are currently
seeing the same issue as ticket 5 with MGE 2008 and Firefox, but making the
change manually in ajaxmappane.templ fixed our digitizing problem.
http://trac.osgeo.org/mapguide/changeset/1890

Andy 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason Birch
Sent: Wednesday, October 31, 2007 11:04 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Fluctuating Cursor Accuracy

Sounds like it is related to (or maybe even the same as)

http://trac.osgeo.org/mapguide/ticket/5

http://trac.osgeo.org/mapguide/ticket/223

Jason 

-Original Message-
From: IT-Joe Marvin
Subject: RE: [mapguide-users] Fluctuating Cursor Accuracy

So I gather then that there is nothing the developer can do to detect or
stop this.  Do you know if a bug report been filed?  I looked through and do
not see anything.  If not, I will submit one.
___
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] Errors in PHP viewer...

2007-10-31 Thread Warren Medernach
[Wed Oct 17 10:45:39 2007] [error] [client 139.48.252.181] FastCGI:
server C:/Program
Files/MapGuideOpenSource/WebServerExtensions/Php/php-cgi.exe stderr:
PHP Warning:  Missing argument 7 for BuildClientSideTree(), called in
C:\\Program
Files\\MapGuideOpenSource\\WebServerExtensions\\www\\mapviewerphp\\legen
d.php on line 89 and defined in C:\\Program
Files\\MapGuideOpenSource\\WebServerExtensions\\www\\mapviewerphp\\legen
d.php on line 181, referer: http://server
name:8008/mapguide/mapviewerphp/legendctrl.php?MAPNAME..
http://server
name:8008/mapguide/mapviewerphp/legendctrl.php?MAPNAME.. 
 
Has nobody else seen this in the Apache Error logs?
Is this just something specific to my installation?
 
Thanks for any info...
 
Warren Medernach
 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Warren
Medernach
Sent: Wednesday, October 03, 2007 3:54 PM
To: MapGuide Users Mail List
Subject: [mapguide-users] Errors in PHP viewer...


Hello all,
 
I've been tracking some errors on a php application we have, and I have
found that there is a function in the legend.php called
BuildClientSideTree that takes 7 parameters.  However in every call to
this function in this legend.php file, it is only passing 6 arguements?
 
Anybody else run into this?

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


RE: [mapguide-users] Errors in PHP viewer...

2007-10-31 Thread Kayne M. Morvant
Yes, I have noticed that as well.  I haven't noticed any issues in the 
viewer as a result of the errors, but it is annoying nonetheless.


-Kayne

At 03:28 PM 10/31/2007 -0400, you wrote:

Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary=_=_NextPart_001_01C81BF4.281CCA86

[Wed Oct 17 10:45:39 2007] [error] [client 139.48.252.181] FastCGI: server 
C:/Program Files/MapGuideOpenSource/WebServerExtensions/Php/php-cgi.exe 
stderr: PHP Warning:  Missing argument 7 for BuildClientSideTree(), called 
in C:\\Program 
Files\\MapGuideOpenSource\\WebServerExtensions\\www\\mapviewerphp\\legend.php 
on line 89 and defined in C:\\Program 
Files\\MapGuideOpenSource\\WebServerExtensions\\www\\mapviewerphp\\legend.php 
on line 181, referer: 
http://:8008/mapguide/mapviewerphp/legendctrl.php?MAPNAME..http://server 
name:8008/mapguide/mapviewerphp/legendctrl.php?MAPNAME..


Has nobody else seen this in the Apache Error logs?
Is this just something specific to my installation?

Thanks for any info...

Warren Medernach



--
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Warren Medernach

Sent: Wednesday, October 03, 2007 3:54 PM
To: MapGuide Users Mail List
Subject: [mapguide-users] Errors in PHP viewer...

Hello all,

I've been tracking some errors on a php application we have, and I have 
found that there is a function in the legend.php called 
BuildClientSideTree that takes 7 parameters.  However in every call to 
this function in this legend.php file, it is only passing 6 arguements?


Anybody else run into this?

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



-
Kayne Morvant
C  C Technologies, Inc.
730 E. Kaliste Saloom Rd.
Lafayette, LA 70508
Phone: 337-261-0660 ext. 3431
Direct Line: 337-735-3667
Fax: 337-261-0192
Email: [EMAIL PROTECTED]
-

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


RE: [mapguide-users] Errors in PHP viewer...

2007-10-31 Thread Warren Medernach
Thanks Kayne,
 
At least it's not specific to my install then...
 
Warren M
 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kayne M.
Morvant
Sent: Wednesday, October 31, 2007 1:37 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Errors in PHP viewer...


Yes, I have noticed that as well.  I haven't noticed any issues in the
viewer as a result of the errors, but it is annoying nonetheless.

-Kayne

At 03:28 PM 10/31/2007 -0400, you wrote:


Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary=_=_NextPart_001_01C81BF4.281CCA86

[Wed Oct 17 10:45:39 2007] [error] [client 139.48.252.181]
FastCGI: server C:/Program
Files/MapGuideOpenSource/WebServerExtensions/Php/php-cgi.exe stderr:
PHP Warning:  Missing argument 7 for BuildClientSideTree(), called in
C:\\Program
Files\\MapGuideOpenSource\\WebServerExtensions\\www\\mapviewerphp\\legen
d.php on line 89 and defined in C:\\Program
Files\\MapGuideOpenSource\\WebServerExtensions\\www\\mapviewerphp\\legen
d.php on line 181, referer: http://server
name:8008/mapguide/mapviewerphp/legendctrl.php?MAPNAME..
http://:8008/mapguide/mapviewerphp/legendctrl.php?MAPNAME.. 
 
Has nobody else seen this in the Apache Error logs?
Is this just something specific to my installation?
 
Thanks for any info...
 
Warren Medernach
 




From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Warren
Medernach
Sent: Wednesday, October 03, 2007 3:54 PM
To: MapGuide Users Mail List
Subject: [mapguide-users] Errors in PHP viewer...

Hello all,
 
I've been tracking some errors on a php application we have, and
I have found that there is a function in the legend.php called
BuildClientSideTree that takes 7 parameters.  However in every call to
this function in this legend.php file, it is only passing 6 arguements?
 
Anybody else run into this?

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


-
Kayne Morvant
C  C Technologies, Inc. 
730 E. Kaliste Saloom Rd. 
Lafayette, LA 70508 
Phone: 337-261-0660 ext. 3431
Direct Line: 337-735-3667
Fax: 337-261-0192
Email: [EMAIL PROTECTED]
-



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