[mapguide-users] Re: Run MGOS with IIS on another port

2010-04-21 Thread stoff

Thanks, Jason! 

I will try ... and report.

Best regards,

Stoff
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Run-MGOS-with-IIS-on-another-port-tp4937189p4941084.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] Run MGOS with IIS on another port

2010-04-21 Thread stoff

Hi,

I am working on my development machine and there is allready running on port
80 an apache to establish a testenvironment of trac,subversion etc.
It is an requirement to use IIS for the new asp.net/MGOS application, so I
decided to install IIS paralell working on port 81.

No I am not sure how to configure the MGOS to use port 81 as well. Can
anybody help me? I found port configurations in the webconfig.ini within
2810,2811, 2812 ... but dont know how to get it running.
It is not possible to login to the siteadministrator because of this
misconfiguraton probably. He tolds me:

Fatal error: Call to undefined function MgInitializeWebTier() in
C:\Programme\OSGeo\MapGuide\Web\www\mapadmin\login.php on line 70

Here is my port situation attached:
http://n2.nabble.com/file/n4937189/ports.txt ports.txt 

Thanks in advance,

Stoff

-- 
View this message in context: 
http://n2.nabble.com/Run-MGOS-with-IIS-on-another-port-tp4937189p4937189.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: current win-setup does not work

2010-04-21 Thread stoff

Hi,

I solved the installer problem by downloading with another machine(mac) ... 
It's strange, that I did not get the rigth download file within windows with
three different browsers!

Now the installer quits here:
http://n2.nabble.com/Installation-error-tp3858392p3858392.html

Arrgh...

Looking forward to a running MGOS...but still optimistic!

Stoff




-- 
View this message in context: 
http://n2.nabble.com/current-win-setup-does-not-work-tp4911515p4935671.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: current win-setup does not work

2010-04-19 Thread stoff

Dear J,

where do I find the instruction for the manual install?
Are you talking about building like here:
http://mapguide.osgeo.org/sites/mapguide.osgeo.org/files/BuildingAndConfiguringMGOSOnWindows.pdf

Thanks and best regards,

Stoff
-- 
View this message in context: 
http://n2.nabble.com/current-win-setup-does-not-work-tp4911515p4929647.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: current win-setup does not work

2010-04-19 Thread stoff

Thanks Jason, thanks Martin for your support.

Did not succeed  untill now. 7zip is not be able to open the .exe, which
should be an archive ... so I can't reach the msi to have command line
support. Is it possible that the download file is hacked? I get the checksum
(md5) f9f7744d481455bc38a9547bdeb11a0d ... or
3cd78c763dfc88f3c1c31c78761d1e11.
The MGOS checksum should be f5b86032f72f242329450b16634abba7 according to
the website!  

I tried the download with 3 different browsers ... are there other download
mirrors? How can I asure to have the right download way...

Best regards,

Stoff
-- 
View this message in context: 
http://n2.nabble.com/current-win-setup-does-not-work-tp4911515p4929612.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: current win-setup does not work

2010-04-19 Thread stoff

Hi Martin,

there are 17 Giga free ... should be enough. Or not???
Is there another way to get an idea, what the problem could be? To start a
debugging modus with params or something like that ...


Thanks and best regards,

Stoff
-- 
View this message in context: 
http://n2.nabble.com/current-win-setup-does-not-work-tp4911515p4924548.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] current win-setup does not work

2010-04-15 Thread stoff

Hi,

I tried to set up MGOS on my xp-machine. The setup routine on 

http://download.osgeo.org/mapguide/releases/2.1.0/MapGuideOpenSource-2.1.0.4283-Final.exe

does only show the hourglass-cursor for a short time and nothing else
happens... no errormsg, no logfile

Any ideas? I am working on windows xp SP3 with IIS 5  and all
.Net-Frameworks installed.

Any ideas are welcome,

Stoff
-- 
View this message in context: 
http://n2.nabble.com/current-win-setup-does-not-work-tp4911515p4911515.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] Create PDF with map image

2009-09-08 Thread stoff

Hey friends,

I found the solution myself... yeah!

Dim png As Image = Image.GetInstance(New Uri("http://localhost"; &
hfMapSrc.Value))

That's it! ... puh! Better than hustling bytes, isn't it? And quit
performant...

Best regards,

Stoff
-- 
View this message in context: 
http://n2.nabble.com/Create-PDF-with-map-image-tp3600303p3602055.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] Create PDF with map image

2009-09-07 Thread stoff

Hi, 

I would like to create a PDF from my HTML-Printlayout with iTextSharp...

This is my approach on Postback:
Dim imgMap As iTextSharp.text.Image =
iTextSharp.text.Image.GetInstance("http://localhost"; & hfMapSrc.Value) 

where hfMapSrc.Value was allready written in the hfMapSrc on clientside
initDocument(): 

if (ValidateMapResponse(requester.responseXML.documentElement))" & vbCrLf
strJS = strJS & "  {var strSrc=webAgent + " & Chr(34) &
"?OPERATION=GETMAPIMAGE&FORMAT=PNG&VERSION=1.0.0&SELECTION=&MAPNAME=" &
Chr(34) & " + encodeURIComponent(mapName) + " & Chr(34) & "&SESSION=" &
Chr(34) & " + sessionId + " & Chr(34) & "&CLIENTAGENT=" & Chr(34) & " +
encodeURIComponent(clientAgent); " & vbCrLf
strJS = strJS & "   document.getElementById(" & Chr(34) &
"mapImage" & Chr(34) & ").src = strSrc;debugger;" & vbCrLf
strJS = strJS & "   document.getElementById('" &
hfMapSrc.ClientID & "').setAttribute('value',strSrc);" & vbCrLf
strJS = strJS & "   }" & vbCrLf

the hfMapSrc.value is available as:
"/mapguide2010/mapagent/mapagent.fcgi?OPERATION=GETMAPIMAGE&FORMAT=PNG&VERSION=1.0.0&SELECTION=&MAPNAME=internalMap&SESSION=7fc9d4a0-7e3c-102c-8000-000374890932_en_7F010AF20AF10AF0&CLIENTAGENT=Ajax%20Viewer"

and Session is still open of course ...

Or Do I really have to move byte by byte ...like done in the scribble
example? Is there a more comfortable solution (with use of itextSharp)?

Best regards, Stoff



-- 
View this message in context: 
http://n2.nabble.com/Create-PDF-with-map-image-tp3600303p3600303.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] initial displacement of map content

2009-08-02 Thread stoff

Hi Chris,

great job! That was exactly the problem ... if I activate the
propertyctrl, then the displacement does not occur anymore ...

I use mapguide enterprise 2009 ... Do you have an idea how to
find the fix? 'Cause I do not need the property panel on the 
weblayout for the "web-dummys" ... cause there will be no
selection features ...

Thanks a lot,

Stoff





Chris Claydon wrote:
> 
> This sounds like a defect that I thought had been fixed a long time  
> ago. Which version of the MapGuide web tier are you using?
> 
> Also, do you have the property panel disabled? I think that was the  
> case when I last saw this issue.
> 
> Sent from my iPhone
> 
> On 2009-08-01, at 4:01 PM, "stoff"  wrote:
> 
>>
>> Hi,
>> I have a displacement of the map within the Ajax-Viewer (a white gap  
>> at the
>> top of
>> the map). It happens on initial map visualization and disappears  
>> when the
>> splitter
>> between layerctrl and mapframe is moved ...
>>
>> http://n2.nabble.com/file/n3370781/versatz.jpg
>>
>> Any hints are welcome ...
>>
>> Best regards,
>>
>> Stoff
>> -- 
>> View this message in context:
>> http://n2.nabble.com/initial-displacement-of-map-content-tp3370781p3370781.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
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/initial-displacement-of-map-content-tp3370781p3372229.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] Zoom to extent of single selected polygon

2009-08-01 Thread stoff

Hi, I have a problem zooming on polygon extent. I use the
ExecuteMapAction(10) on the selected polygon, but it does not zoom to the
extent, but to the centroid.

Any hints are welcome...

Best regards,

Stoff
-- 
View this message in context: 
http://n2.nabble.com/Zoom-to-extent-of-single-selected-polygon-tp3370796p3370796.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] initial displacement of map content

2009-08-01 Thread stoff

Hi,
I have a displacement of the map within the Ajax-Viewer (a white gap at the
top of
the map). It happens on initial map visualization and disappears when the
splitter
between layerctrl and mapframe is moved ...

http://n2.nabble.com/file/n3370781/versatz.jpg 

Any hints are welcome ...

Best regards,

Stoff
-- 
View this message in context: 
http://n2.nabble.com/initial-displacement-of-map-content-tp3370781p3370781.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] How to set Default Tool & Units

2009-05-12 Thread stoff

Hi Kenneth,

works perfect! Thanks a lot for your input.

Best regards,

stoff



Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> To set the tool, you need to attach javascript code to the maploaded 
> function in the viewer frame.
> Then call the ExecuteMapAction() function to select the desired tool (9 
> in your case).
> The maploaded function/event is described in the developers guide.
> 
> The ExecuteMapAction is described here:
> http://mapguide.osgeo.org/files/mapguide/docs/viewerapi/viewerapi.html
> 
> To change to Meters, edit the ajaxmappane.templ file located here:
> C:\Program 
> Files\MapGuideOpenSource2.0\WebServerExtensions\www\viewerfiles\ajaxmappane.templ
> change line 293 from:
> var us = true;
> to:
> var us = false;
> 
> You can only change it on a "per server" basis.
> 
> Regards, Kenneth Skovhede, GEOGRAF A/S
> 
> 
> 
> stoff skrev:
>> Hi! I have been searching how to switch the default tool to "Zoom by 
>> rectangle" on application start, because I don't need selection 
>> features in my application. ... without success Any ideas? Second 
>> question: Where can I configure "Kilometers/Meters" as startup -Unit ? 
>> Looking forward to your hints, stoff
>> 
>> View this message in context: How to set Default Tool & Units 
>> <http://n2.nabble.com/How-to-set-Default-Tool---Units-tp2826969p2826969.html>
>> Sent from the MapGuide Users mailing list archive 
>> <http://n2.nabble.com/MapGuide-Users-f1803227.html> 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://n2.nabble.com/How-to-set-Default-Tool---Units-tp2826969p2869063.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] How to set Default Tool & Units

2009-05-07 Thread stoff

Hi!

I have been searching how to switch the default tool to "Zoom by rectangle"
on application start, because I don't need selection features in my
application. 

... without success

Any ideas?

Second question: Where can I configure "Kilometers/Meters" as startup -Unit
?

Looking forward to your hints,

stoff
-- 
View this message in context: 
http://n2.nabble.com/How-to-set-Default-Tool---Units-tp2826969p2826969.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] asp.net example of loading a webmapservice layer

2009-03-04 Thread stoff

Hi Stefan,

thanks a lot for your information. That's a real good documentation ... 

Best regards,

Christoph



Stefan Dalakov wrote:
> 
> Steps to setup a wms are very well described here:
> https://trac.osgeo.org/fdo/wiki/FdoWmsNotes
> I have copied a portion of the configuration document for the
> featuresource
> You can use Maestro to attach a configuration document to your existing 
> featuresource
> 
> Stefan Dalakov
> 
> stoff wrote:
>> Hi Stefan,
>>
>> I only modify the Mapguide-Studio-generated-XML (look at my uploads
>> above)
>> of layerdefinition and featuresource. Which XML-File have you mentioned
>> and
>> how do you use it?
>>  I did it like this (without success):
>>
>> 
>>  
>> Library://WMS/hessen_Ortho.FeatureSource
>>  0.5
>>  WMS_Schema:DOP04F1
>>  Raster
>>  
>>  
>>  
>>  
>>  
>>  
>> FF00
>>  
>>  
>>  
>>  
>>  
>>  
>> 00FF
>>  
>>  
>>  
>>  1
>>  
>>  
>>
>>
>>   
> 
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/asp.net-example-of-loading-a-webmapservice-layer-tp2328300p2428031.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] asp.net example of loading a webmapservice layer

2009-03-04 Thread stoff

Hi Stefan,

I only modify the Mapguide-Studio-generated-XML (look at my uploads above)
of layerdefinition and featuresource. Which XML-File have you mentioned and
how do you use it?
 I did it like this (without success):



Library://WMS/hessen_Ortho.FeatureSource
0.5
WMS_Schema:DOP04F1
Raster






FF00






00FF



1




-- 
View this message in context: 
http://n2.nabble.com/asp.net-example-of-loading-a-webmapservice-layer-tp2328300p2421199.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] asp.net example of loading a webmapservice layer

2009-03-03 Thread stoff

Hi,

I have a new and an old problem :

First I am still looking for a solution about transparency 
Do I have to configure it in the layerdefinition.xml AND in the called URL(
... ?service=wms&transparent=true)?

Second problem: 

Loading of the wms layer works fine. But in the legend.aspx
BuildLayerDeifinitionData-Function there is an encoding-problem in the row
"doc.LoadXML(layerDefString). He finds a char code 65279 as first Charakter
 strange, because loading of the layerdefinition works fine, and there
is no charakter like this in the xml-file ...
Is there a posibility to use explicitly UTF-8 Encoding within the mapguide
resource-classes?  


Best regards,

Christoph


-- 
View this message in context: 
http://n2.nabble.com/asp.net-example-of-loading-a-webmapservice-layer-tp2328300p2414541.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] asp.net example of loading a webmapservice layer

2009-02-26 Thread stoff

Hi Kenneth,


your hint and this Example was helpfull. Thanks!!!

http://n2.nabble.com/How-to-add-WMS-%28Transparent%29-layer-to-MapGuide--tp1811263p1811263.html

Now I am looking for a solution about transparency ... puh!
Do I have to configure it in the layerdefinition.xml and in the called URL(
... ?service=wms&transparent=true)?


Best regards,

Christoph
-- 
View this message in context: 
http://n2.nabble.com/asp.net-example-of-loading-a-webmapservice-layer-tp2328300p2390734.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] asp.net example of loading a webmapservice layer

2009-02-19 Thread stoff

Thanks Kenneth, thanks Dave for your Hints.

Here is my effort. In line 139 I get an error, cause I don't know what to
pass as header-parameter in objMGResourceService.SetResource(). In PHP it is
null, in asp.net nothing does not work (MgDbXMLException). I tried to load
the given temp.layerDefinition.xml.

Do you know any examples on loading ogc stuff like catalogservices, wms,
layers ... ?

http://n2.nabble.com/file/n2352287/ogc_services.aspx.vb ogc_services.aspx.vb 
http://n2.nabble.com/file/n2352287/temp.FeatureSource.xml
temp.FeatureSource.xml 
http://n2.nabble.com/file/n2352287/temp.LayerDefinition.xml
temp.LayerDefinition.xml 

Looking forward to a solution,

stoff
-- 
View this message in context: 
http://n2.nabble.com/asp.net-example-of-loading-a-webmapservice-layer-tp2328300p2352287.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] asp.net example of loading a webmapservice layer

2009-02-14 Thread stoff

Hi,

the devGuide gives an example of adding layers to a map in php.
Has anybody an comparable example in asp.net?
I want to load an ogc-wms into the map by loading an existing 
layer.definition.xml to a resource and add the resource to the
map. The xml-file can by generated for example by the mapguide
studio ...

Thanks a lot,

stoff


-- 
View this message in context: 
http://n2.nabble.com/asp.net-example-of-loading-a-webmapservice-layer-tp2328300p2328300.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] clear selection of one layer

2009-01-17 Thread stoff

Hey Kenneth,

thanks for your solution. I should better do things more pramatically ...

best regards,

stoff


Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> Get a hold of the selection xml (either through server code or the 
> javascript call GetSelectionXml()).
> The xml has a structure like this (not the actual layout, but close
> enough):
> 
> 
>
>  ...
>
> 
> 
>
>  ...
>
> 
> 
> 
> Simply remove the  tag that you don't want and save back the xml 
> or call SetSelectionXml.
> 
> Regards, Kenneth Skovhede, GEOGRAF A/S
> 
> 
> 
> stoff skrev:
>> Hi, 
>>
>> how do I clear the selection of a single layer, while preserving the
>> selection of the others?
>>
>> Best regards,
>>
>> stoff
>>   
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/clear-selection-of-one-layer-tp2171557p2172854.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] clear selection of one layer

2009-01-17 Thread stoff

I tried to manage the selection on serverside (look below) and afterwards
refreshing the map
by parent.parent.mapFrame.Refresh(); from the taskframe clientside.
Refreshing works, but the
layers I want the selection cleared are still shown

Here is my serverside asp.net(vb.net) code: 

 Protected Sub ManageSelection(ByVal selectionXML As String, ByVal siteConn
As MgSiteConnection, ByVal mapName As String)

Dim resourceService As MgResourceService =
TryCast(siteConn.CreateService(MgServiceType.ResourceService),
MgResourceService)
Dim featureService As MgFeatureService =
TryCast(siteConn.CreateService(MgServiceType.FeatureService),
MgFeatureService)
Dim i As Integer
Dim map As New MgMap()
Dim layers As MgReadOnlyLayerCollection
Dim selection As MgSelection = Nothing

map.Open(resourceService, mapName)

If (selectionXML IsNot Nothing) AndAlso (selectionXML <> "") Then
selection = New MgSelection(map, selectionXML)
layers = selection.GetLayers()
Else
layers = Nothing
End If

If layers IsNot Nothing Then
Dim queryOptions As New MgFeatureQueryOptions()
For i = 0 To layers.GetCount() - 1

Dim layer As MgLayer = TryCast(layers.GetItem(i), MgLayer)

If (layer IsNot Nothing) And layer.Name =
m_ExpertiseConfig.SelectableLayer Then

' Create a filter containing the IDs of the selected
features on this layer
Dim layerClassName As String =
layer.GetFeatureClassName()
Dim selectionString As String =
selection.GenerateFilter(layer, layerClassName)

' Get the feature resource for the selected layer

Dim layerFeatureId As String =
layer.GetFeatureSourceId()
Dim layerFeatureResource As New
MgResourceIdentifier(layerFeatureId)

' Apply the filter to the feature resource for the
selected layer. This returns
' an MgFeatureReader of all the selected features.

queryOptions.SetFilter(selectionString)
Dim featureReader As MgFeatureReader =
featureService.SelectFeatures(layerFeatureResource, layerClassName,
queryOptions)

' get FIDs of all objects
m_slSelectionFIDs.Clear()

While featureReader.ReadNext()
If selectionString.Contains("FID") Then
Debug.Print(featureReader.GetInt64("FID"))

'Do something else ...

End If
End While
Else
'Here is my problem: How do I clear the selection of the
layer?
If selection.GetLayers.Contains(layer) Then
selection.GetLayers.Remove(layer)
Dim layerFeatureId As String =
layer.GetFeatureSourceId()
Dim layerFeatureResource As New
MgResourceIdentifier(layerFeatureId)
selection.Save(resourceService, m_giUtils.MapName)
layer.ForceRefresh()
End If
End If
Next
Else
Debug.Print("No Selection")
End If

map.Save()


End Sub
-- 
View this message in context: 
http://n2.nabble.com/clear-selection-of-one-layer-tp2171557p2172842.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] clear selection of one layer

2009-01-16 Thread stoff

Hi, 

how do I clear the selection of a single layer, while preserving the
selection of the others?

Best regards,

stoff
-- 
View this message in context: 
http://n2.nabble.com/clear-selection-of-one-layer-tp2171557p2171557.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] Create a Visual Studio 2008 Solution of dotnetviewersample

2008-11-22 Thread stoff

Hi,

it is not a snapshot to translate such a project in real asp.net code ...
perhaps we can share this problem and build it up together ... I can chip in
some parts of my trials ...

Best regards,

stoff

Am 21.11.2008 um 05:06 schrieb Leslie:

Hello! I have the same erros. Have you sovled them ? If true ,can you share
with me? Thank you
Leslie
stoff wrote:

Jamo181 wrote:
> 
> I Would be interested in this also if you manage to get your hands on one
> please do share :)
> 

-- 
View this message in context: 
http://www.nabble.com/Create-a-Visual-Studio-2008-Solution-of-dotnetviewersample-tp18235849p20634921.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] Dotnet viewer sample application problem

2008-11-22 Thread stoff

Hi padmini,

the error concerning the path of you webconfig.ini is strange. Have you
installed http://mapguide.osgeo.org/download/releases/2.0.2 the windows
binaries? You have to do this and you must import the sheboygan example
package. 

You must realize that the dotnetviewersample is not really state-of-the-art
asp.net code. so it works like old asp coding stuff
(http://en.wikipedia.org/wiki/Active_Server_Pages). So it is not debuggable
within the visual studio. Please read 
http://www.nabble.com/Create-a-Visual-Studio-2008-Solution-of-dotnetviewersample-to18235849.html#a18235849
this thread .

So it is still a task to develop a dotnetviewersample solution which
contains asp.net compatible coding...

In my project we are working on some parts of the viewer application in real
asp.net code but ... it is remittance work.

Good luck,

stoff



padmini godavarthi wrote:
> 
> 
>Hi,
> Thanks for ur reply .
>  
>  
> I  have downloaded the   dotnetviewersample.zip from the url
>  
> http://mapguide.osgeo.org/download/releases/2.0.x-samples
>  
> and unzipped in to
>  
> C:\Program
> Files\MapGuideOpenSource2.0\WebServerExtensions\www
>  
>  
> and i copied bin folder and webconfig.ini  from mapviewernet application
> and pasted in to  dotnetviewersample application
>  
> i have created one virtual directory in IIS (named as dotnetviewersample)
> and openend this application from .Net 2005 .  
> While setting the ajaxviewersample.aspx as start page and opened in the
> browser
>  
>  
> it gives an error that
>  
>   Configuration file "C:\Program
> Files\MapGuideOpenSource2.0\WebServerExtensions\www\dotnetviewersample\dotnetviewersample\../webconfig.ini"
> cannot be found or cannot be opened.
>  
>  
> My Doubt is that
>  
>  
> 1) How this dotnetviewersample application works?
>  
> 2) How to debug this application?
>  
> 3) What will be the output
>  
> Can u plz tell me briefly?
>  
> if u know the error plz help me.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dotnet-viewer-sample-application-problem-tp20480441p20634850.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: Re: [mapguide-users] Print Layout - 2 questions...

2008-10-16 Thread stoff

Hi Kenneth, hi Warren!

...just to be sure:

Is it true that the Mapguide Studio Printlayouts are only to use
within the dwf viewer (and its activeX-features)?

To have a customized printlayout in the mapguide ajax standard viewer
I have to modify the printablepage.templ?

And this pertains topobase web in the same manner, doesn't it?

Just a big suprise, because the Users Guide does not really gives hints on
this ...

Best regards and thank you in advance,

stoff javascript:Nabble.smiley('anim_confused.gif',':confused:')

Is it okay, to ask this here or do I have to ask it only in the autodesk
discussion group?



Warren Medernach wrote:
> 
> Perfect!
> 
> Thanks for the info Kenneth.
> 
>  
> 
> Warren M
> 
>  
> 
>  
> 
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth
> Skovhede, GEOGRAF A/S
> Sent: Friday, October 03, 2008 11:54 AM
> To: MapGuide Users Mail List
> Subject: Re: [mapguide-users] Re: Print Layout - 2 questions...
> 
>  
> 
> Not sure if he got the answers, but here they are:
> 1. You must change it in ajaxmappane.templ (line 293):
> Look for:
> 
> var us = true;
> 
> and change to:
> 
> var us = false;
> 
> You have to change this every time update your MapGuide installation.
> 
> 2. There is no built in way to do this, you must modify
> printablepage.templ.
> Its a HTML file that gets sent to the browser with the map items
> injected.
> You can set a logo anywhere on the page using some html:
> 
>  mylogo.gif 
> 
> If you want different printable pages for different solutions, you have
> to modify 
> at least printablepageui.templ.
> 
> Again, you have to change this every time update your MapGuide
> installation.
> 
> 
> The files I mention are all located in:
> 
> C:\Program
> files\MapGuideOpenSource2.0\WebServerExtensions\www\viewerfiles
> Regards, Kenneth Skovhede, GEOGRAF A/S
> 
> 
> 
> Warren Medernach skrev: 
> 
> Hi Andrew,
> Were you ever able to resolve this print layout issue?
>  
> Warren M
>  
>  
>   
> 
>   I've got 2 questions about PrintLayouts1) How do I make my
> units
>   
> 
> metres? I've got >every instance of  set to metres in my
> PrintLayout, and yet my scale bar insists >that the units are feet. 2)
> How the heck do you get a custom logo?? It seems so simple, >but I can't
> get it to work for the life of meI've got a symbol library called
>   
> 
>   "Logo", and in it there is one symbol called "Gemlogo-smaller".
> I've
>   
> 
> tried all sorts of >variations on ResourceIDs, but can't get it. 
>  
>   
> 
>   Andrew
>   
> 
> ___
> 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
> 
> 
:confused:
-- 
View this message in context: 
http://www.nabble.com/Re%3A-Print-Layout---2-questions...-tp19801245p20010308.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] Firefox3, ajaxviewer & printablepage.templ

2008-08-17 Thread stoff

Hi, 

I am working on Windows XP with asp.net on a ajaxviewer application. To get
the ajaxviewer run in firefox 3 I found a fixed mapagent.exe,
isapi_MapAgent.dll and modified ajaxmappane.templ. The problem is the
requester.open("Post", webAgent + reqParams, true);, which has to be a GET
in order to show the map within the firefox.

But the printablepage.templ seems not to be fixed untill now...
I tried the following, but it does not work ... there is still only a
printable page displayed without map ...

var requester;
if(msie)
requester = new ActiveXObject("Microsoft.XMLHTTP");
else
requester = new XMLHttpRequest();

var reqParams = "OPERATION=GETVISIBLEMAPEXTENT&VERSION=1.0.0&MAPNAME=" +
encodeURIComponent(mapName) + "&SESSION=" + sessionId + "&SETDISPLAYWIDTH="
+ mapWidth + "&SETDISPLAYHEIGHT=" + mapHeight + "&SETDISPLAYDPI=" + dpi +
"&SETVIEWSCALE=" + scale + "&SETVIEWCENTERX=" + centerX + "&SETVIEWCENTERY="
+ centerY + "&SEQ=" + Math.random();

requester.open("GET", webAgent + "?" + reqParams, true);
requester.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");
requester.send(reqParams);

if(requester.responseXML)
{
if(ValidateMapResponse(requester.responseXML.documentElement))
document.getElementById("mapImage").src = webAgent +
"?OPERATION=GETMAPIMAGE&FORMAT=PNG&VERSION=1.0.0&SELECTION=&MAPNAME=" +
encodeURIComponent(mapName) + "&SESSION=" + sessionId;
}

Any ideas are welcome ...

Best regards,

stoff

-- 
View this message in context: 
http://www.nabble.com/Firefox3%2C-ajaxviewer---printablepage.templ-tp19020350p19020350.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] How to export a WebLayouts toolbox and menu configuration

2008-08-17 Thread stoff

Dear Kenneth,

thanks a lot for your good explanation. It helped a lot... !
It is not documented anywhere, isn't it?

Best regards,

stoff



Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> If you right click the WebLayout after it has been created, you can 
> choose something like "Save to Xml...".
> This is the xml file.
> 
>  From Studio, you cannot restore the file, but you have 2 options:
> 1. Go to:
> http://localhost/mapguide/mapagent/index.html
> Click "Resource" (top-left) and "SetResource" (bottom-left)
> On the right, enter the full path of the target WebLayout, eg.: 
> Library://myfolder/mylayout.WebLayout
> Browse the "Content" file, and select the xml file.
> Click "Submit".
> 
> 2. Download Maestro:
> http://trac.osgeo.org/mapguide/wiki/maestro
> You have 2 options:
> a) Create a new WebLayout.
> Click "Edit Xml" (button on the top toolbar)
> Paste your new xml into the box.
> Click "OK"
> Click the "Save" icon (button on the top toolbar)
> b) Create a new WebLayout
> Save it.
> Right click it, and select "Load from Xml"
> 
> Regards, Kenneth Skovhede, GEOGRAF A/S
> 
> 
> 
> stoff skrev:
>> Hi, 
>>
>> where do I find the target XML File? Where can I place the a new modified
>> XML File to be reloaded by MapGuide Studio...?
>>
>> Bes regards,
>>
>> stoff
>>
>>
>>   
>>> then merge the toolbox/contextmenu/task sections from the source XML
>>> file  
>>> into the target XML, then reload the modified XML file for the layout
>>> onto  
>>> the target server.
>>> 
>>
>>
>>   
> 
> ___
> 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/How-to-export-a-WebLayouts-toolbox-and-menu-configuration-tp18774434p19020270.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] How to export a WebLayouts toolbox and menu configuration

2008-08-11 Thread stoff

Hi, 

where do I find the target XML File? Where can I place the a new modified
XML File to be reloaded by MapGuide Studio...?

Bes regards,

stoff


>then merge the toolbox/contextmenu/task sections from the source XML file  
>into the target XML, then reload the modified XML file for the layout onto  
>the target server.


-- 
View this message in context: 
http://www.nabble.com/How-to-export-a-WebLayouts-toolbox-and-menu-configuration-tp18774434p18926236.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] How to export a WebLayouts toolbox and menu configuration

2008-08-06 Thread stoff

Hi James,

thanks for your answer, I'll try out ... and report about it!

Best regards,

stoff


James Card wrote:
> 
> On Fri, 01 Aug 2008 06:35:04 -0700, stoff <[EMAIL PROTECTED]> wrote:
> 
>> is it possible to export/import the mapguide Weblayout configuration of  
>> the toolbox/contextmenu/task -commands? I don't want to repeat all  
>> changes in the configuration on every machine I deploy ... or is it  
>> possible to put it into a package?
> 
> Yes, it is possible to create a package that contains just a single web  
> layout.
> 
> It will contain a reference to the map resource. If you wanted to use the  
> same toolbox/contextmenu/task setting in a layout that references a  
> different map you might be better to save the layouts as XML files and  
> then merge the toolbox/contextmenu/task sections from the source XML file  
> into the target XML, then reload the modified XML file for the layout onto  
> the target server.
> 
> -- 
> James Card
> California CAD Solutions, Inc.
> 209-578-5580 - Voice
> 209-521-6493 - FAX
> ___
> 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/How-to-export-a-WebLayouts-toolbox-and-menu-configuration-tp18774434p18850208.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] How to export a WebLayouts toolbox and menu configuration

2008-08-01 Thread stoff

Hi,

is it possible to export/import the mapguide Weblayout configuration of the
toolbox/contextmenu/task -commands? I don't want to repeat all changes in
the configuration on every machine I deploy ... or is it possible to put it
into a package?

Best regards from Berlin,

stoff 
-- 
View this message in context: 
http://www.nabble.com/How-to-export-a-WebLayouts-toolbox-and-menu-configuration-tp18774434p18774434.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] Create a Visual Studio 2008 Solution of dotnetviewersample

2008-07-02 Thread stoff

Hi,

I downloaded the dotnetviewersample and want o make a Visual Studio 2008
project of it. After copying the sample code to the VS-www directory and the
MG-dlls to the bin directory, I opend the directory as Website. Trying to
compile,  I came across the following problems ...

1) Type or Namespace JsonObject was not found => I took the proper namespace
Jayrock.Json ... works!

2) File \query\property.aspx could not be found => not strange, because it
is stored in the directory \query\classes\property.aspx ... but where is
this path stored?... in a binary?  I have not found it in the code and moved
the file in the directory above ... dirty but works ...

3) The path /utilityfunctions.aspx could not be assigned. ... found some
wrong include paths, but can't eleminate this error ... any ideas?

A downloadable Visual Studio website solution would be great ...  ;-)

Has anyone experiences with the asp.net development server? I don't want to
install IIS on my development machine ...

Best regards ...

stoff
-- 
View this message in context: 
http://www.nabble.com/Create-a-Visual-Studio-2008-Solution-of-dotnetviewersample-tp18235849p18235849.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