RE: [mapguide-users] Unable to select/highlight objects - MGE 2010Update 1 AJAX Viewer

2009-09-10 Thread Ivan Miličević
Hey,

Could you try to recreate your map with Mapguide Maestro? I had same problem 
and it work's for me.

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Praveen Rajendra 
Babu
Sent: Thursday, September 10, 2009 1:53 AM
To: Dave Wilson; MapGuide Users Mail List
Subject: RE: [mapguide-users] Unable to select/highlight objects - MGE 
2010Update 1  AJAX Viewer

An update from my side:
   After upgrading to MGE 2010 Update 1 at the server end, I did not bring in 
the MGE 2010 Update 1 DLLs(the DLL's in mapviewernet\bin) into my local .NET 
bin directory. After doing this, did not see any such 
highlighting/selecting issues on the customized MGE application. 
Still does not answer the inability to highlight/selecting objects on the 
map when viewing with the AJAX viewer from MapGuide Studio. Mystery 
continues.
At this point of time, everything seems to be back to normalcy both from the 
customized MGE and the AJAX viewer from MapGuide Studio.

On the session timeout, the logs do show that and I believe the earlier 
inability of highlighting/selecting objects on the map is not related to 
session time-outs, as I was able to move around the map(zoom in/out,pan etc...)

Hope this helps.

-Praveen


-Original Message-
From: Dave Wilson [mailto:dave.wil...@autodesk.com] 
Sent: Thursday, 10 September 2009 3:42 AM
To: MapGuide Users Mail List; Praveen Rajendra Babu
Subject: RE: [mapguide-users] Unable to select/highlight objects - MGE 
2010Update 1  AJAX Viewer

In general the session timeout has probably expired so the map is not actually 
usable until the layout is refreshed and generates a new session. I'm somewhat 
surprised you don't see session expired exceptions in the log. The session 
timeout is a setting in the Site Admin under Configure Services. I will try and 
determine if this behavior has changed in any way as of the update.

Regards,
Dave

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Mark Hedges
Sent: Monday, August 31, 2009 12:12 PM
To: mapguide-users@lists.osgeo.org; prb...@openspatial.com.au
Subject: Re: [mapguide-users] Unable to select/highlight objects - MGE 
2010Update 1  AJAX Viewer

I have the same issue with both MGE 2009 and 2010.  I thought maybe there was a 
timeout setting or something like that. 
-Original Message-
From: Praveen Rajendra Babu prb...@openspatial.com.au
To: mapguide-users@lists.osgeo.org mapguide-users@lists.osgeo.org

Sent: 8/30/2009 5:23:59 PM
Subject: [mapguide-users] Unable to select/highlight objects - MGE 2010Update 1 
 AJAX Viewer

Hi,
 This is happening quite regularly and thought of bringing to the group's 
notice.
When I leave MGE idle, like overnight and the next day morning when I try to 
access 
the map, it displays perfectly fine. But when I try to select a feature on the 
map
it shows x feature selected, but the object is not highlighted on the map. 
Also,
any MGE API operations with the selected non-highlighted object fails.
  To resolve the issue, I re-start BOTH MGE server and WWW services. 
I have recently applied the MGE 2010 Update 1 and can't remember anything like 
this
prior to the update.
 The server Error.log has the below consistent message:
Error: The requested operation version is invalid.
StackTrace:
  - MgOperationThread.ProcessOperation() line 431 file 
d:\build\testarossa_nightly\build_35.5\ent\os\server\src\core\OperationThread.cpp
  - MgFeatureServiceHandler.ProcessOperation() line 83 file 
d:\build\testarossa_nightly\build_35.5\ent\os\server\src\services\feature\FeatureServiceHandler.cpp
  - MgFeatureOperationFactory.GetOperation() line 445 file 
d:\build\testarossa_nightly\build_35.5\ent\os\server\src\services\feature\FeatureOperationFactory.cpp

Please let me know if you want me to enable more logging detail, if that helps.

System details:
MapGuide Server Version: 2.1.0.3505
MapGuide AJAX Viewer Version: 2.1.0.3505
OS: Windows Server 2003 Standard Edition SP 2
IIS Server : V6.0


Thanks for your time.

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


[mapguide-users] MaestroAPI - Possible error in RenderRuntimeMap

2009-09-10 Thread Gunter Becker
Hi, 

 

when using RenderRuntimeMap methode of the Connection object it seems
that the dpi value takes no effect. I'm trying to render the map with
150 dpi but it renders like using 96 dpi. 

 

When rendering through the WebTierApi with the exact same values (150
dpi) it shows up as expected. 

In my former project I used the WebTierApi methode but thought that
since using Maestro I could switch to the RenderRuntimeMap methode. 

 

Is there something I am missing or ist this an error in MaestroAPI? 

 

Thanks, Gunter

 

 

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


[mapguide-users] Navigator(Zoom Slider), Virtual Earth Zoom, open layers in Basic web layout

2009-09-10 Thread Fraser Burgess
Hi,

 

I have a few questions and was hoping to get some suggestions from the
list.  I'm running the MapGuide Enterprise 2010 :

 

1.   How can I move the Navigator(zoom slider) control in the fusion
slate viewer?  Currently it is fixed at the top right and I would like
to move it to the top left.

 

2.   Using the usual  'addGoogleStuff' code I've added with Virtual
Earth base layers along with Google base layers in the Slate fusion
template.   I am unable to zoom in past about 1:5000 when I use the
Virtual Earth base layers.  I believe there should still be 2 more zoom
levels I should be able to achieve with virtual earth base layers.  The
numZoomLevels option is set to 30 which I think is far more than what is
offered in MSVE.  Using Google Earth as my base I can zoom right in.
Any idea how I can zoom in closer to the MSVE base layers 

 

3.   So I've been somewhat successful at adding the 'addgooglestuff'
code to a flexible fusion layout.  Is it possible to do the same thing
in a Basic Ajax Layout?  If so what file should I be adding code to use
the google / MSVE as a base in my Basic Web Layout.  Is t here any
sample pages out there that have done this?

 

Thanks

 

Fraser

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


Re: [mapguide-users] MaestroAPI - Possible error in RenderRuntimeMap

2009-09-10 Thread Kenneth Skovhede, GEOGRAF A/S
For some reason the DPI property is not set-able in the MapGuide API, 
but works just fine with the WebAPI.

So you are correct, the DPI setting is ignored.
Not sure if it is per-design or a bug in the API.

My workaround is something like this:

LocalNativeConnection realCon; //Assigned somewhere

ServerConnectionI renderCon;

if (dpi != 96) //96 is the default API
   renderCon = new HttpServerConnection(new Uri(), 
realCon.SessionId, null, true);

else
   renderCon = realCon;

renderCon.RenderRuntimeMap(); //DPI

Regards, Kenneth Skovhede, GEOGRAF A/S



Gunter Becker skrev:


Hi,

 

when using RenderRuntimeMap methode of the Connection object it seems 
that the dpi value takes no effect. I'm trying to render the map with 
150 dpi but it renders like using 96 dpi.


 

When rendering through the WebTierApi with the exact same values (150 
dpi) it shows up as expected.


In my former project I used the WebTierApi methode but thought that 
since using Maestro I could switch to the RenderRuntimeMap methode.


 


Is there something I am missing or ist this an error in MaestroAPI?

 


Thanks, Gunter

 

 




___
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] Add point to map

2009-09-10 Thread Paulo Veríssimo

Hi

I'm trying to do a simple job with Mapguide Enterprise 2010 and php but I'm 
not being succefull.

Hope someone can help.

The goal is to add a session point to a layer from a sdf feature source 
already created. May be another one, if it becomes easier.
I already have a page where the user inputs the coordinates and scale and 
the piece of javascript does the zoom and scale but than I want to draw a 
point at that location calling a php page with all the needed parameters 
including the coordinates.


What's the code for this final php file to add a point to the map?

Here is the code for the input page:

script language='javascript'
function gotoxy()
{   var coords=document.gotoxyform.inputbox.value;
if(coords.indexOf(',')0)
{   var coordsplit=coords.split(',');
{   if(coordsplit.length==2)
{   var coordx=parseFloat(coordsplit[0]);
var coordy=parseFloat(coordsplit[1]);
var 
scale=parseFloat(document.gotoxyform.scalebox.value);
parent.parent.mapFrame.ZoomToView(coordx, 
coordy, scale, true);
}
			document.location=zoomxy_execute.php?SESSION=?= $sessionId 
?MAPNAME=?= $mapName ?x=+coordx+y=+coordy;

}
}
}
/script


form name='gotoxyform' action='javascript:gotoxy()' method='post'
Input coordinates:
input name='inputbox' value=-99000,-99000
br
Input Scale:
input name='scalebox' value=2
br
input value='Zoom' type='submit'
/form


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


[mapguide-users] RE: Navigator(Zoom Slider), Virtual Earth Zoom, open layers in Basic web layout

2009-09-10 Thread Chris Claydon
I can provide some vague answers - hopefully someone else on the list can 
provide more detail...

For item 1

The Navigator is contained by the div with the id Navigator. The location 
of the div is controlled by settings in the CSS file...

#Navigator {
  right: 10px;
  top: 10px;
  display: block;
}

This is easy to spot in jxtheme.uncompressed.css, but the slate template uses 
the compressed version (jxtheme.css) for maximum performance. If you find this 
section in the compressed file:

#Navigator{right:10px;top:10px;display:block;}

You should be able to modify the location.

For Item 2...

I think the maximum number of zoom levels is about 20, and I'm not sure what 
happens if you try to set it too high - it might use the maximum value or it 
might revert to the default. There is also an issue that you can set the number 
of levels on either the layer or the map object and I'm not sure which one 
takes precedence.

For item 3...

The Google/MSVE support is based upon the use of OpenLayers, which is used by 
Fusion, but not by the Basic viewer, so it would be a LOT of work to add it 
into a basic layout. It is also possible to use OpenLayers all by itself 
outside of either viewer, but you then lose all the buttons etc from the web  
layouts.

One other thing to consider - the trunk version of Fusion supports Google/VE 
layers simply by modifying the flexible web layout definition. It might be 
worth looking into that.

Chris.

From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Fraser Burgess
Sent: Thursday, September 10, 2009 9:19 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Navigator(Zoom Slider), Virtual Earth Zoom, open 
layers in Basic web layout

Hi,

I have a few questions and was hoping to get some suggestions from the list.  
I'm running the MapGuide Enterprise 2010 :


1.   How can I move the Navigator(zoom slider) control in the fusion slate 
viewer?  Currently it is fixed at the top right and I would like to move it to 
the top left.



2.   Using the usual  'addGoogleStuff' code I've added with Virtual Earth 
base layers along with Google base layers in the Slate fusion template.   I am 
unable to zoom in past about 1:5000 when I use the Virtual Earth base layers.  
I believe there should still be 2 more zoom levels I should be able to achieve 
with virtual earth base layers.  The numZoomLevels option is set to 30 which I 
think is far more than what is offered in MSVE.  Using Google Earth as my base 
I can zoom right in.  Any idea how I can zoom in closer to the MSVE base layers



3.   So I've been somewhat successful at adding the 'addgooglestuff' code 
to a flexible fusion layout.  Is it possible to do the same thing in a Basic 
Ajax Layout?  If so what file should I be adding code to use the google / MSVE 
as a base in my Basic Web Layout.  Is t here any sample pages out there that 
have done this?


Thanks

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


RE: [mapguide-users] RE: Navigator(Zoom Slider), Virtual Earth Zoom, open layers in Basic web layout

2009-09-10 Thread Fraser Burgess
Thanks Chris

 

Your answers for 1 and 3 give me the info I needed to know... Much
appreciated.

 

For Item 2

I played with the zoom levels option and tried 15 through 25..  Seems
like 20 is the maximum and there is no impact when you set it over 20.
If I set it anywhere under 20 then Google cannot zoom in to its max zoom
level as you would expect.   So I thought there may be a conflict
between Google and Virtual Earth so I removed the Google layers and only
worked with MSVE.  Despite playing with the zoom level option with just
the MSVE layers here I cannot zoom in to the max in MSVE.

 

 

Fraser

 

 

From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Chris
Claydon
Sent: Thursday, September 10, 2009 12:26 PM
To: MapGuide Users Mail List
Subject: [mapguide-users] RE: Navigator(Zoom Slider), Virtual Earth
Zoom, open layers in Basic web layout

 

I can provide some vague answers - hopefully someone else on the list
can provide more detail...

 

For item 1

 

The Navigator is contained by the div with the id Navigator. The
location of the div is controlled by settings in the CSS file...

 

#Navigator {

  right: 10px;

  top: 10px;

  display: block;

}

 

This is easy to spot in jxtheme.uncompressed.css, but the slate template
uses the compressed version (jxtheme.css) for maximum performance. If
you find this section in the compressed file:

 

#Navigator{right:10px;top:10px;display:block;}

 

You should be able to modify the location.

 

For Item 2...

 

I think the maximum number of zoom levels is about 20, and I'm not sure
what happens if you try to set it too high - it might use the maximum
value or it might revert to the default. There is also an issue that you
can set the number of levels on either the layer or the map object and
I'm not sure which one takes precedence. 

 

For item 3...

 

The Google/MSVE support is based upon the use of OpenLayers, which is
used by Fusion, but not by the Basic viewer, so it would be a LOT of
work to add it into a basic layout. It is also possible to use
OpenLayers all by itself outside of either viewer, but you then lose all
the buttons etc from the web  layouts.

 

One other thing to consider - the trunk version of Fusion supports
Google/VE layers simply by modifying the flexible web layout definition.
It might be worth looking into that.

 

Chris.

 

From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Fraser
Burgess
Sent: Thursday, September 10, 2009 9:19 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Navigator(Zoom Slider), Virtual Earth Zoom,
open layers in Basic web layout

 

Hi,

 

I have a few questions and was hoping to get some suggestions from the
list.  I'm running the MapGuide Enterprise 2010 :

 

1.   How can I move the Navigator(zoom slider) control in the fusion
slate viewer?  Currently it is fixed at the top right and I would like
to move it to the top left.

 

2.   Using the usual  'addGoogleStuff' code I've added with Virtual
Earth base layers along with Google base layers in the Slate fusion
template.   I am unable to zoom in past about 1:5000 when I use the
Virtual Earth base layers.  I believe there should still be 2 more zoom
levels I should be able to achieve with virtual earth base layers.  The
numZoomLevels option is set to 30 which I think is far more than what is
offered in MSVE.  Using Google Earth as my base I can zoom right in.
Any idea how I can zoom in closer to the MSVE base layers 

 

3.   So I've been somewhat successful at adding the 'addgooglestuff'
code to a flexible fusion layout.  Is it possible to do the same thing
in a Basic Ajax Layout?  If so what file should I be adding code to use
the google / MSVE as a base in my Basic Web Layout.  Is t here any
sample pages out there that have done this?

 

Thanks

 

Fraser

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


[mapguide-users] Fusion - Session ID invalid because the session separator character was not found

2009-09-10 Thread Fraser Burgess
Hi List.

I'm modifying the Ajax utility demo found here
http://enterprise.mapguide.com/utilitymap/ .  I made all my
modifications and had my shiny new application up and running in a basic
AJAX layout.  

I'm now trying to move it across to a Fusion layout.  All code works
fine in the basic web layout, but in the Fusion layout I get the error
below.  So I guess the question is how does Fusion differ from Ajax when
it comes to passing through a session ID?  Any code out there that shows
how this is done in fusion? 

Further to this, if I get across this initial hurdle, are there a pile
more waiting for me by taking something created for AJAX and cramming it
into Fusion?

Thanks for your help.

Fraser



Invalid argument(s):
[1] = 
The session ID is invalid because the session separator character was
not found. 

Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code. 

Exception Details: OSGeo.MapGuide.MgInvalidArgumentException: Invalid
argument(s):
[1] = 
The session ID is invalid because the session separator character was
not found.

Source Error: 

 

Line 34: this.args = incomingArgs;

Line 35: this.site = new MgSiteConnection();

Line 36: this.site.Open(new
MgUserInformation(GetParameter(this.args, session)));

Line 37: }

Line 38: 





 

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


RE: [mapguide-users] Fusion - Session ID invalid because the session separator character was not found

2009-09-10 Thread Chris Claydon
The ease of porting scripts from the basic viewer to the fusion viewer can vary 
substantially depending on what your code does. The underlying web tier API is 
the same, but the viewer APIs are different. In most cases there are equivalent 
functions in Fusion, the tricky part is figuring out what they are because the 
documentation is sparse. There are several people on this mailing list that 
have experience in porting scripts, and they are probably the best resource for 
solving any problems you run into.

For the issue of determining the session ID, are you able to capture the 
request that is being made to your script using Fiddler? The session parameter 
may be missing, but my suspicion (from looking at the code for the InvokeUrl 
Fusion widget) is that it is just getting sent in uppercase - so maybe try 
changing session to SESSION before digging deeper with Fiddler.

Chris.

From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Fraser Burgess
Sent: Thursday, September 10, 2009 11:54 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] Fusion - Session ID invalid because the session 
separator character was not found

Hi List.
I'm modifying the Ajax utility demo found here 
http://enterprise.mapguide.com/utilitymap/ .  I made all my modifications and 
had my shiny new application up and running in a basic AJAX layout.
I'm now trying to move it across to a Fusion layout.  All code works fine in 
the basic web layout, but in the Fusion layout I get the error below.  So I 
guess the question is how does Fusion differ from Ajax when it comes to passing 
through a session ID?  Any code out there that shows how this is done in fusion?
Further to this, if I get across this initial hurdle, are there a pile more 
waiting for me by taking something created for AJAX and cramming it into Fusion?
Thanks for your help.
Fraser

Invalid argument(s):
[1] = 
The session ID is invalid because the session separator character was not found.
Description: An unhandled exception occurred during the execution of the 
current web request. Please review the stack trace for more information about 
the error and where it originated in the code.

Exception Details: OSGeo.MapGuide.MgInvalidArgumentException: Invalid 
argument(s):
[1] = 
The session ID is invalid because the session separator character was not found.

Source Error:

Line 34: this.args = incomingArgs;
Line 35: this.site = new MgSiteConnection();
Line 36: this.site.Open(new 
MgUserInformation(GetParameter(this.args, session)));
Line 37: }
Line 38:



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


Re: [mapguide-users] Unable to select/highlight objects - MGE 2010Update 1 AJAX Viewer

2009-09-10 Thread 大高 大輔

Hi,

 Mark
Are you using Multi-Schema?
I'm having the same problem (maybe same) after upgrading to MGE 2010 Update 1.

Any idea?

Best, Regards.

[issue]
selecting is OK, but highlighting is NG

[target feature]
point feature (line and area are OK)

[feature source]
database: oracle 11g
feature schema: multi schema

[details]
//---
// Pattern A
//---
layer A: belong to SchemaA
layer B: belong to SchemaB
map: only 2 layer (layerA and layerB)
layer A - Drawing Order 0 (Upper)
layer B - Drawing Order 1 (Lower)

-- layerA is NG, layerB is OK

//---
// Pattern B
//---
layer A: belong to SchemaA
layer B: belong to SchemaB
map: only 2 layer (layerA and layerB)
layer B - Drawing Order 0 (Upper)
layer A - Drawing Order 1 (Lower)

-- layerA is NG, layerB is OK

//---
// Pattern C
//---
layer A: belong to SchemaA
layer B: belong to SchemaB
layer C: belong to SchemaA
map: only 3 layer (layerA, layerB, layerC)
layer A - Drawing Order 0
layer B - Drawing Order 1
layer C - Drawing Order 2
-- layerA is OK, layerB is NG, layerC is OK
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] MapGuide Project Sponsorship RFC 83

2009-09-10 Thread Trevor Wekel
Hello lists,

After some initial discussion with MapGuide PSC members, I am presenting RFC 83 
- Project Sponsorship to the community for review and comment.  This RFC lays 
the groundwork for official sponsorship of the MapGuide Open Source Project.  
The sponsorship methodology closely follows other OSGeo projects such as 
GDAL/OGR and OpenLayers.

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

Any comments, questions, or concerns regarding the RFC are welcome.


Thank you,
Trevor Wekel  


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