[mapguide-users] Digitize Circle and get xml selection in Fusion

2011-10-19 Thread Iulia Tamas
Hello I have the 2 following problems with Fusion (MapGuide 2.2): 1) I don't know how could I digitize a circle because in  MapguideViewerApi.js I have found only :  DigitizePoint / DigitizeLine / DigitizeLineString / DigitizeRectangle / DigitizePolygon 2) How can I get the xml selection from

[mapguide-users] Re: Digitize Circle and get xml selection in Fusion

2011-10-19 Thread GordonL
You will have to really modify the MapguideViewerApi.js file to incorporate Circles. They are actually Regular Polygons with 40+ sides according to OpenLayers. Check out http://openlayers.org/dev/examples/regular-polygons.html -- Fusion does things a lot differently, why do you need the

Re: [mapguide-users] Digitize Circle and get xml selection in Fusion

2011-10-19 Thread Iulia Tamas
Hello, I have modified the MapguideViewerApi,.js by copying the Rectangle handler and increasing the number of sides to 40 in order to make a circle handler. The circle is now digitized, but the next issue that I'm facing is the fact that I  don't know how to get the center and radius of the

[mapguide-users] Re: Digitize Circle and get xml selection in Fusion

2011-10-19 Thread GordonL
Because the event is set up for RegularPolygon, if (this.handler.CLASS_NAME == 'OpenLayers.Handler.RegularPolygon') { var v = geom.getVertices(); apiGeom = new Rectangle(new Point(v[0].x, v[0].y), new Point(v[2].x, v[2].y)); You get the first and third vertices - which means very

[mapguide-users] project with shapefiles

2011-10-19 Thread dimdeld
Hello I' m trying to plan a project in which I need to have access to thousands of shapefiles. The ideal plan is to have a php form in which I will call the shapefiles and they will appear on a web gis viewer. Using mapguide I felt that making a package is very limiting since it's size can be

[mapguide-users] Re: project with shapefiles

2011-10-19 Thread GordonL
Just use Aliases for your SHP files. Watch this Video for setting up with MapGuide 2.2. http://www.youtube.com/v/Pky8eNaqxfg -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/project-with-shapefiles-tp6909933p6910079.html Sent from the MapGuide Users mailing list

[mapguide-users] Re: OpenLayers with MapGuide

2011-10-19 Thread GordonL
Ok, so if you use useOverlay: true; you are using the Rendering Service API called GETDYNAMICOVERLAYIMAGE http://trac.osgeo.org/mapguide/wiki/HttpApi/RenderingService#GetDynamicMapOverlayImage2.0 this API does not accept a *mapdefinition *parameter. So if you know the name of the

[mapguide-users] Re: OpenLayers with MapGuide

2011-10-19 Thread Jackie Ng
It just means you would have to create this runtime map first on the server-side before OpenLayers can get its hands on it. - Jackie -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/OpenLayers-with-MapGuide-tp6902038p6910994.html Sent from the MapGuide Users mailing list

[mapguide-users] change layer filter after map has been loaded

2011-10-19 Thread tmblackflag
Hello, I'm currently copying a web layout to the session repository and dynamically changing the runtime map. Now, after a map has loaded I want to change a layer filter. I've read that i can use a similar method of getting the layer xml, modifying the filter tag and saving it back to the session

[mapguide-users] Re: change layer filter after map has been loaded

2011-10-19 Thread Jackie Ng
Runtime layer filters are immutable. They are initialized once from the Layer Definition. Changing the Layer Definition will do nothing for the existing runtime layer. Armed with this knowledge, if you wanted to change the layer filter, you would make a session copy of the original Layer

[mapguide-users] Re: Custom Command in New Window - Window size

2011-10-19 Thread Jackie Ng
Popup window sizes for the AJAX viewer are currently hardcoded at 500x500 pixels in viewerfiles/mainframe.templ - Jackie -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Custom-Command-in-New-Window-Window-size-tp6903931p6911176.html Sent from the MapGuide Users mailing