Re: [mapguide-users] Jx Layout and Fusion

2008-12-04 Thread Paul Spencer

Cool, you found it before I could even look at it!

On 4-Dec-08, at 3:02 PM, Mark Pendergraft wrote:


I found the problem.

In my index.html I had 2 references.  One to fusion.js and one to  
jx.js.
When I removed the jx.js reference, everything worked just fine.   
Thanks

a bunch for your help regardless.

-Mark Pendergraft

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Thursday, December 04, 2008 8:08 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Jx Layout and Fusion

Thanks Paul,
Here is my index.html, applicaitondefintion.xml and css.
The ApplicationDefinition.xml and CSS were copied from the
fusion/templates/aqua/ directory from the MGOS 2.02 installation with
only a few very slight modifications.

I essentially want a layout that is all map, but I'd like the
legend/SelectionPanel/TaskPane to be tabs (very similar to the  
LimeGold

layout) but in a movable and resizable dialog.

I did look through the examples on jxlib.org, but the jxlib seems to  
be
a later iteration of the code.  I am able to create a tabbox in a  
dialog

using the jxlib, just not using the fusion libraries.

Thanks for your help.
-Mark Pendergraft


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul
Spencer
Sent: Thursday, December 04, 2008 5:33 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Jx Layout and Fusion

Hi Mark,

this is probably something to do with Jx.  Jx.Layout is used to make
things fill their containers, it sounds like you are missing  
something.

Perhaps if you post your code+html+css we could advise you ...

Cheers

Paul


On 3-Dec-08, at 1:46 PM, Mark Pendergraft wrote:


I have a question about the Jx libraries in relation to Fusion.  I'm
trying to build my own layout for fusion similar to the aqua layout
supplied with MGOS.  I would like the Legend, SelectionPanel, and  
Task



Pane to show up as tabs in a dialog.  The code works and they are
displayed as such, but the tabbox doesn't take up the entire dialog,
so there are scroll bars up/down and left/right and there is blank
space on the bottom and right of the dialog that the tabbox sits in.
There is also blank space on the bottom of the dialog that I have
created for the overview map, even though I used the same exact code
as the provided template.  Is this a Jx issue, or are the sizes of  
the



controls handled in another part of the code?
I looked in the css for the template, and I didn't see anything.
Also, If I create separate dialog boxes for all three elements
(taskpane, selectionpanel, and legend) than each element fills it's
dialog completely like it's supposed to.
Thanks for the help!
-Mark Pendergraft
___
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


Re: [mapguide-users] Using Fusion functions from a seperate iframe

2008-12-04 Thread Paul Spencer
Each frame is a separate document, which means it has its own 'window'  
global variable.  One of the members of window is parent which refers  
to the parent window of the current window.  Normally this is a self- 
reference but if you are using frames then it refers to the parent  
frame or frameset.  In your case, code running in map iframe can use  
window.parent to refer to the parent page.  There is another property,  
top which refers to the ultimate parent directly in the case of nested  
frames.  Window also has a frames member which can be used to  
reference the individual frames within the window.  So ... from the  
code iframe, you should be able to do something like this:


window.top.frames.map.someFunction();

which in this case is the same as:

window.parent.frames.map.someFunction();

Note that the same origin policy applies to frames, restricting access  
to frames that are loaded from different domains.


Cheers

Paul

On 4-Dec-08, at 8:50 AM, Jason Woodman wrote:



I'm trying to access the fusion commands for a map from a javascript  
function
in a separate iframe.  Does anyone know how to do this and can  
supply some
pointers or sample code on how to get a reference to the fusion  
commands in

one iframe from another iframe.

Here is my page setup
---
| parent page   |
| --- |
| | map iframe | code iframe | |
| --- |
---

My javascript function is in the code iframe, and I need to be able  
to have
it access the map functions in the map iframe so I can do things  
like select

objects, zoom to a selection, and the like.

Thanks,
Jason Woodman
EMH&T, Inc.
--
View this message in context: 
http://www.nabble.com/Using-Fusion-functions-from-a-seperate-iframe-tp20833758p20833758.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] Blinking Point

2008-12-04 Thread ajid1980

My Situation
-
Platform : Mapguide Maestro

I have Symbol Style = Symbol : Square 
So i just want to make that Square blinking..
It is possible?? so how the method??
Thanx

-- 
View this message in context: 
http://www.nabble.com/Blinking-Point-tp20846719p20846719.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] Share an Invoke Script ??

2008-12-04 Thread ajid1980

Another Function :

Source Code From "Kenneth Skovhede, GEOGRAF A/S" and i tried this

Invoke Script :
Button A : START = window.refreshTimerId =
window.setInterval('GetMapFrame().Refresh()', 1); 
Button B : STOP = window.clearInterval(window.refreshTimerId); 

It Worked.. Thanx Kenneth Skovhede, GEOGRAF A/S
-- 
View this message in context: 
http://www.nabble.com/Share-an-Invoke-Scripttp20825504p20846353.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] [ZS2] Re: [ZS2] refresh script - Invoke Script

2008-12-04 Thread ajid1980

Thanx Bro.. 
ok now my situation, i invoke script 

Button A : START = window.refreshTimerId =
window.setInterval('GetMapFrame().Refresh()', 1);
Button B : STOP = window.clearInterval(window.refreshTimerId);

It worked and ok.. Thanx again Bro.. ;)
-- 
View this message in context: 
http://www.nabble.com/refresh-script---Invoke-Script-tp20829972p20845775.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] Jx Layout and Fusion

2008-12-04 Thread Mark Pendergraft
I found the problem.

In my index.html I had 2 references.  One to fusion.js and one to jx.js.
When I removed the jx.js reference, everything worked just fine.  Thanks
a bunch for your help regardless.

-Mark Pendergraft

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Thursday, December 04, 2008 8:08 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Jx Layout and Fusion

Thanks Paul,
Here is my index.html, applicaitondefintion.xml and css.
The ApplicationDefinition.xml and CSS were copied from the
fusion/templates/aqua/ directory from the MGOS 2.02 installation with
only a few very slight modifications.

I essentially want a layout that is all map, but I'd like the
legend/SelectionPanel/TaskPane to be tabs (very similar to the LimeGold
layout) but in a movable and resizable dialog.

I did look through the examples on jxlib.org, but the jxlib seems to be
a later iteration of the code.  I am able to create a tabbox in a dialog
using the jxlib, just not using the fusion libraries.

Thanks for your help.
-Mark Pendergraft


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul
Spencer
Sent: Thursday, December 04, 2008 5:33 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Jx Layout and Fusion

Hi Mark,

this is probably something to do with Jx.  Jx.Layout is used to make
things fill their containers, it sounds like you are missing something.
Perhaps if you post your code+html+css we could advise you ...

Cheers

Paul


On 3-Dec-08, at 1:46 PM, Mark Pendergraft wrote:

> I have a question about the Jx libraries in relation to Fusion.  I'm 
> trying to build my own layout for fusion similar to the aqua layout 
> supplied with MGOS.  I would like the Legend, SelectionPanel, and Task

> Pane to show up as tabs in a dialog.  The code works and they are 
> displayed as such, but the tabbox doesn't take up the entire dialog, 
> so there are scroll bars up/down and left/right and there is blank 
> space on the bottom and right of the dialog that the tabbox sits in.  
> There is also blank space on the bottom of the dialog that I have 
> created for the overview map, even though I used the same exact code 
> as the provided template.  Is this a Jx issue, or are the sizes of the

> controls handled in another part of the code?
> I looked in the css for the template, and I didn't see anything.
> Also, If I create separate dialog boxes for all three elements 
> (taskpane, selectionpanel, and legend) than each element fills it's 
> dialog completely like it's supposed to.
> Thanks for the help!
> -Mark Pendergraft
> ___
> 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: [ZS2] Re: [mapguide-users] [ZS2] refresh script - Invoke Script

2008-12-04 Thread Kenneth Skovhede, GEOGRAF A/S
As I wrote (and as is explained in the link), the setInterval() function 
returns
a timerId. You can then pass this to the clearInterval() function to 
stop it:


window.refreshTimerId = null;

function StartRefreshTimer()
{
   if (window.refreshTimerId == null)
  window.refreshTimerId = 
window.setInterval('GetMapFrame().Refresh()', 1);

   else
  alert('Already refreshing!');
}

function StopRefreshTimer()
{
   if (window.refreshTimerId != null)
   {
   window.clearInterval(window.refreshTimerId);
   window.refreshTimerId = null;
   }
   else
  alert('Was not refreshing!');
}

Regards, Kenneth Skovhede, GEOGRAF A/S



ajid1980 skrev:
What is the criteria for stopping it? 
My Criteria it depends on my script like this (called=START) <

window.setInterval('GetMapFrame().Refresh()', 1); > So i want to make
other Invoke Script (called=STOP) to Stop it.. I tried many many java
scripts to stop the refresh function.. so anyone help how??or other method
?? 






Kenneth Skovhede, GEOGRAF A/S wrote:
  

What is the criteria for stopping it?

See the "clearInterval" method:
http://www.elated.com/articles/javascript-timers-with-settimeout-and-setinterval/

Regards, Kenneth Skovhede, GEOGRAF A/S



ajid1980 skrev:

hai all 
i found the refresh script and put it on Invoke Script <

window.setInterval('GetMapFrame().Refresh()', 1); >
So how i wanna to stop it??
Thanx
  
  

___
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] Patch to change the active tool Cursor in ajax viewer

2008-12-04 Thread Bruno Scott

Thanks for your reply Kenneth,

This sample code is pretty much the same as mine.
I will do what you suggested and send a Diff patch.

Bruno


-- 
View this message in context: 
http://www.nabble.com/Patch-to-change-the-active-tool-Cursor-in-ajax-viewer-tp20789750p20837333.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] Geomap GIS Publishing

2008-12-04 Thread Bruno Scott

The Geomap GIS Publishing wizard was designed to work with Previous Mapguide
6 family.
It can't work with Mapguide OpenSource / Enterprise as it is really not the
same product.

Bruno Scott
-- 
View this message in context: 
http://www.nabble.com/Geomap-GIS-Publishing-tp20804421p20837262.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] quest for change in the ajax viewer - legend with selectability

2008-12-04 Thread Bruno Scott

Motivation
Selection is something very centric in many custom applications. So it must
be fast and easy to use. It is sometimes pretty difficult to select point
features or to select many polygone object when there is other polygone
under them.

So i would like to propose to add a new icon in the legend to be able to
toggle the selectability of each layers. Something like this
http://www.nabble.com/file/p20837203/legend.gif 

I have attached the updated version of the legendui.templ for Mapguide 2.02
if you want to try it.
You just need to replace your www/viewerfiles/legendui.templ and copy the
icons in the www/stdicons folder.
http://www.nabble.com/file/p20837203/legend_select.zip legend_select.zip 

I am ready to create diff patches and to submit it to the community

Bruno


-- 
View this message in context: 
http://www.nabble.com/Request-for-change-in-the-ajax-viewer---legend-with-selectability-tp20837203p20837203.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] FeatureSet XML returned by QUERYMAPFEATURES for WFS layer

2008-12-04 Thread gingerbbm

Dear all

I've modified the PHP sample (Ajax viewer) to show an SDF layer and a WFS
layer.

If I drag-select in the SDF layer, objects are selected (highlighted) as you
would expect, and the Properties pane is updated.

But, if I drag-select in the WFS layer, nothing happens.

The XML returned by the QUERYMAPFEATURES on the SDF layer:



http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="FeatureSet-1.0.0.xsd"> 
  
   
dwgAAA==  
 


SJ99


...


The XML returned by the QUERYMAPFEATURES on the WFS layer:



http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="FeatureSet-1.0.0.xsd">




...


In other words, the  element is empty for the WFS layer.
Presumably this is what's preventing the object being highlighted and the
Properties pane being updated.

Can anyone explain why the XML structure is different?

Many thanks
Stuart
-- 
View this message in context: 
http://n2.nabble.com/FeatureSet-XML-returned-by-QUERYMAPFEATURES-for-WFS-layer-tp1614063p1614063.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] Share an Invoke Script ??

2008-12-04 Thread ajid1980

So anyone wanna share then Function Of Invoke Script?? :)
-- 
View this message in context: 
http://www.nabble.com/Share-an-Invoke-Scripttp20825504p20835933.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] [ZS2] refresh script - Invoke Script

2008-12-04 Thread ajid1980

What is the criteria for stopping it? 
My Criteria it depends on my script like this (called=START) <
window.setInterval('GetMapFrame().Refresh()', 1); > So i want to make
other Invoke Script (called=STOP) to Stop it.. I tried many many java
scripts to stop the refresh function.. so anyone help how??or other method
?? 





Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> What is the criteria for stopping it?
> 
> See the "clearInterval" method:
> http://www.elated.com/articles/javascript-timers-with-settimeout-and-setinterval/
> 
> Regards, Kenneth Skovhede, GEOGRAF A/S
> 
> 
> 
> ajid1980 skrev:
>> hai all 
>> i found the refresh script and put it on Invoke Script <
>> window.setInterval('GetMapFrame().Refresh()', 1); >
>> So how i wanna to stop it??
>> Thanx
>>   
> ___
> 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/refresh-script---Invoke-Script-tp20829972p20835634.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] No input variables have been defined in SQL statement

2008-12-04 Thread kyedinak

Hello,

I'd like to add more detail to this issue.

I created a simple view called GIS_PROJECT_COVERAGE in MSSQL 2005 that
contained an id column, a text field, and a Geometry column.
Using MapGuide Maestro, I created a data connection using the sl-king FDO
for MSSQL.
I created a layer that uses the GIS_PROJECT_COVERAGE view feature class from
the MsSqlSpatial created with the KingFDO.
I selected each of the fields from the view as properties to display when
the object is selected.
Also, I used the text field from the view as the tooltip.

What I found out is this.  If I preview the layer and roll over an object
(or select an object), I get this error in the error log:

Error: An exception occurred in FDO component.
No input variables have been defined in SQL statement

Have I configured something wrong?  I've watched the videos on sl-king.com a
dozen times and I don't think I've missed anything.

With this issue, I'm unable to select any of the SQL data or use the
tooltip.

Regards,
Kirk


kyedinak wrote:
> 
> 
> Hello,
> 
> Here are the basics:
> SQL 2005, MapGuide Open Source (latest version), King FDO for MSSQL
> 
> I've set up database connection using the King FDO.  I created a layer to
> display my points and polygons from the database.  That part works fine. 
> However, when I attempt to select a feature from the layer that uses the
> King FDO, my error log indicates the following:
> 
> Error: An exception occurred in FDO component.
> No input variables have been defined in SQL statement
>  StackTrace:
>   - MgRenderingServiceHandler.ProcessOperation line 83 file
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\rendering\RenderingServiceHandler.cpp
>   - MgOpQueryFeatures.Execute line 125 file
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\rendering\OpQueryFeatures.cpp
>   - MgServerRenderingService.QueryFeatures line 652 file
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\rendering\ServerRenderingService.cpp
>   - MgServerRenderingService.RenderForSelection line 1326 file
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\rendering\ServerRenderingService.cpp
>   - MgServerSelectFeatures.SelectFeatures line 249 file
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\feature\ServerSelectFeatures.cpp
> An exception occurred in FDO component.
> No input variables have been defined in SQL statement
> 
> Any help would be appreciated.
> Kirk
> 
> -- 
> View this message in context:
> http://n2.nabble.com/No-input-variables-have-been-defined-in-SQL-statement-tp1590404p1590404.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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/No-input-variables-have-been-defined-in-SQL-statement-tp20740157p20833993.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] Using Fusion functions from a seperate iframe

2008-12-04 Thread Jason Woodman

I'm trying to access the fusion commands for a map from a javascript function
in a separate iframe.  Does anyone know how to do this and can supply some
pointers or sample code on how to get a reference to the fusion commands in
one iframe from another iframe.

Here is my page setup
---
| parent page   |
| --- |
| | map iframe | code iframe | |
| --- |
---

My javascript function is in the code iframe, and I need to be able to have
it access the map functions in the map iframe so I can do things like select
objects, zoom to a selection, and the like.

Thanks,
Jason Woodman
EMH&T, Inc.
-- 
View this message in context: 
http://www.nabble.com/Using-Fusion-functions-from-a-seperate-iframe-tp20833758p20833758.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] Problem loading shp into mapguide using maestro. Missing attribute info

2008-12-04 Thread kyedinak

Guys,

In order for your attribute fields to show up in the layer, you must add the
dbf file to your shapefile resource.  For example, if you have a data
resource that has test_poly.shp in it, open that resource and click the
green plus sign and add the test_poly.dbf file.  Click the Test Connection
button to verify all is well.

Save the resource then open up your layer that is using the test_poly info. 
Your fields should show up in the list.

Hope that helps.

Kirk


-- 
View this message in context: 
http://www.nabble.com/Problem-loading-shp-into-mapguide-using-maestro.-Missing-attribute-info-tp19241857p20153838.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] Jx Layout and Fusion

2008-12-04 Thread Paul Spencer

Hi Mark,

this is probably something to do with Jx.  Jx.Layout is used to make  
things fill their containers, it sounds like you are missing  
something.  Perhaps if you post your code+html+css we could advise  
you ...


Cheers

Paul


On 3-Dec-08, at 1:46 PM, Mark Pendergraft wrote:

I have a question about the Jx libraries in relation to Fusion.  I'm  
trying to build my own layout for fusion similar to the aqua layout  
supplied with MGOS.  I would like the Legend, SelectionPanel, and  
Task Pane to show up as tabs in a dialog.  The code works and they  
are displayed as such, but the tabbox doesn't take up the entire  
dialog, so there are scroll bars up/down and left/right and there is  
blank space on the bottom and right of the dialog that the tabbox  
sits in.  There is also blank space on the bottom of the dialog that  
I have created for the overview map, even though I used the same  
exact code as the provided template.  Is this a Jx issue, or are the  
sizes of the controls handled in another part of the code?

I looked in the css for the template, and I didn’t see anything.
Also, If I create separate dialog boxes for all three elements  
(taskpane, selectionpanel, and legend) than each element fills it's  
dialog completely like it's supposed to.

Thanks for the help!
-Mark Pendergraft
___
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] Runtime map

2008-12-04 Thread Kenneth Skovhede, GEOGRAF A/S

If you are using the AJAX, DWF or Fusion viewer only,
you probably never want to create a runtime map.
The official viewers create the runtime map for you.
(and overwrite any you have created).

In that situation, you will need to load the current runtime map from 
the repository,

modify it, save it, and refresh the client.

You would the pass the SessionID to your ASPX code, and
open the connection using:
conn = new HttpServerConnection(host, sessionId, "en", True)

Then you will load the runtime map (delete the create call):

Dim rtMap As RuntimeClasses.RuntimeMap = conn.GetRuntimeMap(rtMapId)


Modify it, eg:
rtMap.Layers(0).Visible = False

and Save it:
conn.SaveRuntimeMap(rtMap);


Then in javascript do:
GetMapFrame().Refresh();

Regards, Kenneth Skovhede, GEOGRAF A/S



padmini godavarthi skrev:


Hi,
iam using mapguide opensource 2.0(.net 2.0 +IIS 5.1).
i saw the runtime map sample application in the url 


http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/RuntimeMap

according to the sample application i changed my code as


   Dim host As New
Uri("http://localhost/mapguide/mapagent/mapagent.fcgi";)
Dim conn As New HttpServerConnection(host, "Administrator", "admin",
"en", True)
Dim res As New ResourceIdentifier("Filebased data/Maps/mapdata",
ResourceTypes.MapDefinition)
Dim mapId As String = res.ResourceId
Dim mapDef As MapDefinition = conn.GetMapDefinition(mapId)
Dim mapName As String = res.Name
Dim rtMapId As String = New ResourceIdentifier(mapName,
ResourceTypes.RuntimeMap, conn.SessionID)
conn.CreateRuntimeMap(rtMapId, mapDef)
Dim rtMap As RuntimeClasses.RuntimeMap = conn.GetRuntimeMap(rtMapId)

i didnt get this one

1) What i have to do with this?
2) What will be the output

If anybody knows me can u plz tell me the procedure


Regards,
Padmini


  

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


[mapguide-users] Images into custom symbols

2008-12-04 Thread peter56

Hello,

I'm trying to embed an image into a custom symbol. Using the 
element as base 64 encoded PNG runs fine :-).

But I have no plan, how to create a link to an image stored as Resource Data
within the resource database. Where/how is it stored, in a symbol library?
How is it to adress from the symbol definition XML?

Please help with a code snippet or further explanation than in pdf document
about building symbol libraries.

Thanks in advance,

Peter
-- 
View this message in context: 
http://www.nabble.com/Images-into-custom-symbols-tp20831567p20831567.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] Share an Invoke Script ??

2008-12-04 Thread jamesdudden

It's ok - i've got it working now.


-
Straightforward solutions to take care of your business
http://www.software-matters.co.uk Software Matters 
-- 
View this message in context: 
http://www.nabble.com/Share-an-Invoke-Scripttp20825504p20830987.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] Runtime map

2008-12-04 Thread padmini godavarthi



Hi,
iam using mapguide opensource 2.0(.net 2.0 +IIS 5.1).
i saw the runtime map sample application in the url 

http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/RuntimeMap

according to the sample application i changed my code as


   Dim host As New
Uri("http://localhost/mapguide/mapagent/mapagent.fcgi";)
Dim conn As New HttpServerConnection(host, "Administrator", "admin",
"en", True)
Dim res As New ResourceIdentifier("Filebased data/Maps/mapdata",
ResourceTypes.MapDefinition)
Dim mapId As String = res.ResourceId
Dim mapDef As MapDefinition = conn.GetMapDefinition(mapId)
Dim mapName As String = res.Name
Dim rtMapId As String = New ResourceIdentifier(mapName,
ResourceTypes.RuntimeMap, conn.SessionID)
conn.CreateRuntimeMap(rtMapId, mapDef)
Dim rtMap As RuntimeClasses.RuntimeMap = conn.GetRuntimeMap(rtMapId)

i didnt get this one

1) What i have to do with this?
2) What will be the output

If anybody knows me can u plz tell me the procedure


Regards,
Padmini


-- 
View this message in context: 
http://www.nabble.com/Runtime-map-tp20830536p20830536.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] Share an Invoke Script ??

2008-12-04 Thread jamesdudden

Hi,

Could you please give me a little help with your invoke script?

I created a new invoke script on my web layout - do i copy and paste your
script exactly in to the Script to invoke window?

When my script is ready how do i use it? I dragged the icon from the command
list to the Toolbar list and started my map but it didn't work i just have a
page of code instead of the map.

Any help is appreciated.

Regards
James

-
Straightforward solutions to take care of your business
http://www.software-matters.co.uk Software Matters 
-- 
View this message in context: 
http://www.nabble.com/Share-an-Invoke-Scripttp20825504p20830511.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: [ZS2] re[mapguide-users] fresh script - Invoke Script

2008-12-04 Thread Kenneth Skovhede, GEOGRAF A/S

What is the criteria for stopping it?

See the "clearInterval" method:
http://www.elated.com/articles/javascript-timers-with-settimeout-and-setinterval/

Regards, Kenneth Skovhede, GEOGRAF A/S



ajid1980 skrev:
hai all 
i found the refresh script and put it on Invoke Script <

window.setInterval('GetMapFrame().Refresh()', 1); >
So how i wanna to stop it??
Thanx
  

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


re[mapguide-users] fresh script - Invoke Script

2008-12-04 Thread ajid1980

hai all 
i found the refresh script and put it on Invoke Script <
window.setInterval('GetMapFrame().Refresh()', 1); >
So how i wanna to stop it??
Thanx
-- 
View this message in context: 
http://www.nabble.com/refresh-script---Invoke-Script-tp20829972p20829972.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] Search Query and shorter url's

2008-12-04 Thread milko_velichkov

Sumedho,

On your second question:
Did you try making folder under ...\WebServerExtensions\www folder and using
ajaxviewersample.php changing $webLayout parameter, then you will have
http:///mapguide2009//ajaxviewersample.php as
a URL.

Regards,
Milko Velichkov


Sumedho wrote:
> 
> I have two questions 
> 
> 1: How do you download or obtain the code for doing custom search queries.
> There is an example application in the live gallery page but I cant find a
> download link for the code.
> 
> 2: Is there an easy way to have a shorter url so that clients can easily
> access their site without a lengthy url.
> 
> Cheers Sumedho
> 

-- 
View this message in context: 
http://www.nabble.com/Search-Query-and-shorter-url%27s-tp20765010p20829525.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