RE: [mapguide-users] RE: Unable to view-Mark
So, Padmini, when you successfully build latest version please post it on wiki! -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Zac Spitzer Sent: Wednesday, February 24, 2010 8:56 AM To: MapGuide Users Mail List Subject: Re: [mapguide-users] RE: Unable to view-Mark BTW there's nothing stopping someone from the community checking it out, building and posting an unoffical build version somewhere or on the wiki :) 2010/2/24 Ivan Miličević ivan.milice...@supranet.hr: OMG, can you use some logic? http://n2.nabble.com/how-to-download-the-latest-SVN-version-td3997693.html -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of padmini godavarthi Sent: Wednesday, February 24, 2010 8:32 AM To: mapguide-users@lists.osgeo.org Subject: [mapguide-users] RE: Unable to view-Mark Hi but http://n2.nabble.com/how-to-download-the-latest-SVN-version-td3997693.ht the content was deleted -- View this message in context: http://n2.nabble.com/Unable-to-view-Mark-tp4623889p4624154.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 -- Zac Spitzer Solution Architect / Director Ennoble Consultancy Australia http://www.ennoble.com.au http://zacster.blogspot.com +61 405 847 168 ___ 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] Re: Getting layer's maxscale to Viewer API
Thank you Kenneth for your great help. I've solved it with the public variable. Best regards, Johannes Foell Kenneth Skovhede, GEOGRAF A/S wrote: Performance of codebehind is much better, and so is the general dependency etc. If at all possible, I recommend that you use codebehind. Also, when writing ajax handlers, be sure to use .ashx as they have less overhead than the .aspx pages. In your code (regardless of where it is placed), you can either use the public variable approach I outlined, or use the response.write method to write data to the output stream. Try to install and use FireBug (for FireFox) or Fiddler (for IE), with either tool, you can see the data being transfered, and that should help you understand what data you are transmitting. I'm not sure why you use the JavaScripSerializer, as you already have the string in a JSON format? The value should not be enclosed in strings, eg, it should be: Dim MString as String = {scale: MaxSC.ToString(System.Globalization.CultureInfo.InvariantCulture) } Then: Response.Clear() Response.Write(MString) Response.Flush() Response.End() In the JS code, you attempt to do something directly after you issue the AJAX call. Since AJAX is async you do not yet have the data. You must wait for the data to be fetched from the server, which is what the onreadystatechanged function is for. Inside this function, you unwrap the JSON string into a javascript object. Your maxsc2 variable is the object, so you can call: var scale = maxsc2.scale; //Your code names the variable double, eg: var scale = maxsc2.double; parent.KartenFrame.viewerFrame.mapFrame.ZoomToView(xcoord,ycoord,scale,true); Remember that the code after request.send() gets executed immediately, and does NOT wait for the server to finish processing. You must do all the processing inside the onreadystatechanged function. Once the data is returned, you can call the zoom function, but not before. I recommend that you also send the x/y values back and forth, so you can easily access them inside the onreadystatechanged callback. Otherwise you need to worry about function scopes and javascript enclosures (advanced JS topic). I recomend that you use some JS framework to achieve this, as that will handle function scope better than the raw method you use here. A JS framework will also give you a nice error handler, and will be cross browser. Prototype seems to be popular: http://www.prototypejs.org/api/ajax/request It's ajax request object has onSuccess and onFailure, so you can give the user a nice message if the server fails, or the network link breaks. Regards, Kenneth Skovhede, GEOGRAF A/S On 18-02-2010 15:57, Johannes Foell wrote: You have exactly pointed out what i need. Unfortunately I'm using code inline and not codebehind. The first way, which you presented doesn't work in my code. As newbie to JSON i've tested your second solution, but i do'nt get the scale to the client there, too. Does anyone here knows, how to deliver a JSON-object from the server to the client? What is wrong in my code? The important lines are: In VB.NET: Sub reload (ByVal o As Object, ByVal e As EventArgs) MaxSc is the double-variable, which contains the MaxScale for the Layer. Dim MString As String = { + Chr(34) + double + Chr(34) + : + Chr(34) + MaxSc.ToString + Chr(34) + } ' e.g. the JSON-Object: {double:31456.57} Dim serializer As New JavaScriptSerializer Dim json As String = serializer.Serialize(MString) End Sub In JS: function ZoomToView() { var url; //the current aspx-file var maxsc; var maxsc2; try { var request = new XMLHttpRequest(); } catch(ex) { try { var request = new ActiveXObject(MSXML2.XMLHTTP); } catch (ex) { var request = new ActiveXObject(Microsoft.XMLHTTP); } } request.onreadystatechange = function() { if(request.readyState == 4) { maxsc2 = eval(( + request.responseText + )); //what do i have to call here? } } request.open(GET, url, true); request.send(); maxsc = maxsc2.double; //the double-field of the object maxsc -= 0.1; //to show the layer in the map parent.KartenFrame.viewerFrame.mapFrame.ZoomToView(xcoord,ycoord,maxsc,true); //the coordinates are no problem. if i set here a number as maxsc, e.g. 15000, it works } Thanks for any help. Regards, Johannes Foell Kenneth Skovhede, GEOGRAF A/S wrote: Not sure this is what you are asking but, this is how I understand your question. Basically the output of an ASPX page is html (or any format really). Since you want to output the scale, you would want the following html output: htmlbodyscript var maxScale =%=serverGeneratedMaxScale%; GetMap().ZoomToView(x, y, maxScale); /script/body/html (I've left out the GetMap() and x, y code). The%=serverGeneratedMaxScale% gets processed by the ASP.Net runtime, and inserts the value of the variable named
[mapguide-users] RE: Unable to view-Mark
Hi, actually iam unable to unable to understand what is this trunk version?and what i have to do now to sole my problem???// regards, padmini G. -- View this message in context: http://n2.nabble.com/Unable-to-view-Mark-tp4623889p4624956.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] Problem with Studio 2010 +Flexible layouts Error
Hi jason, i have modified my applicationDefinition.xml(in maestro -Edit as xml).and assigned it to ProjectionCodeEPSG:26911/ProjectionCode ProjectionDef+proj=utm +zone=11 +ellps=GRS80 +datum=NAD83 +units=m +no_defs/ProjectionDef but the result is java script error as fusion is undefinied in line 24.why this happens to me?? is anybody having this problem?? iam unable to find the solution. Plz guide me.. for another data with LL84 (WGS84 datum, Latitude-Longitude; Degrees) coordinate system .the flexible layouts working fine. -- View this message in context: http://n2.nabble.com/Problem-with-Studio-2010-Flexible-layouts-Error-tp4625346p4625346.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] Color code in layerdefinition file
Hi everyone, Can i apply this color codes for a label control. I have got this XML file of a layerdefinition. I want to use the colors (Which are in Bold) for a asp.net label control as backcolor in my invoke url command page for showing the user currently used color for a line type or for a Label. But i cant able to apply it. which format is this ??? ?xml version=1.0 encoding=UTF-8? LayerDefinition xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xsi:noNamespaceSchemaLocation=LayerDefinition-1.3.0.xsd version=1.3.0 VectorLayerDefinition ResourceIdLibrary://Samples/Sheboygan/Data/RoadCenterLines.FeatureSource/ResourceId FeatureNameSHP_Schema:RoadCenterLines/FeatureName FeatureNameTypeFeatureClass/FeatureNameType GeometrySHPGEOM/Geometry VectorScaleRange MaxScale1/MaxScale LineTypeStyle LineRule LegendLabel /LegendLabel Label UnitPoints/Unit SizeContextDeviceUnits/SizeContext SizeX0/SizeX SizeY8/SizeY TextNAME/Text FontNameVerdana/FontName ForegroundColorFF00/ForegroundColor BackgroundColor/BackgroundColor BackgroundStyleTransparent/BackgroundStyle HorizontalAlignment'Center'/HorizontalAlignment VerticalAlignment'Baseline'/VerticalAlignment AdvancedPlacement ScaleLimit0.5/ScaleLimit /AdvancedPlacement /Label LineSymbolization2D LineStyleSolid/LineStyle Thickness0.5/Thickness Color00FF/Color UnitMillimeters/Unit SizeContextDeviceUnits/SizeContext /LineSymbolization2D /LineRule /LineTypeStyle /VectorScaleRange VectorScaleRange MinScale1/MinScale MaxScale24000/MaxScale LineTypeStyle LineRule LegendLabel /LegendLabel LineSymbolization2D LineStyleSolid/LineStyle Thickness0.5/Thickness ColorFF808080/Color UnitMillimeters/Unit SizeContextDeviceUnits/SizeContext /LineSymbolization2D /LineRule /LineTypeStyle /VectorScaleRange /VectorLayerDefinition /LayerDefinition -- View this message in context: http://n2.nabble.com/Color-code-in-layerdefinition-file-tp4625368p4625368.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: Color code in layerdefinition file
They are hexadecimal numbers for the Alpha, Red, Green and Blue components of a color. These numbers range from 0 (00) to 255 (FF) HTML colors are usually prefixed with a hash (#) and usually don't have the alpha component, so to translate, strip the first 2 characters. eg. - #FF - Jackie -- View this message in context: http://n2.nabble.com/Color-code-in-layerdefinition-file-tp4625368p4625717.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] RE: Unable to view-Mark
http://tinyurl.com/yfxbobn You could ask Zac to compile trunk version for you :) -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of padmini godavarthi Sent: Wednesday, February 24, 2010 11:47 AM To: mapguide-users@lists.osgeo.org Subject: [mapguide-users] RE: Unable to view-Mark Hi, actually iam unable to unable to understand what is this trunk version?and what i have to do now to sole my problem???// regards, padmini G. -- View this message in context: http://n2.nabble.com/Unable-to-view-Mark-tp4623889p4624956.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] ECW Raster too big??
Hello there. I have some ariel photography that I want to sisplay within my map viewer. The file is quite big however - just over 3 Gig. I loaded the file into an alias file and made a raster feature code connection through that. I thought It was going well as it seemed to preview in mapguide ok, but when it comes to displaying on the intranet it a no go. All my other layers are fine so it doesnt time out the map. The layer is visiable in the side plane, just doesnt physically appear. If I just randomly click in the map, where it normally says 'done' it comes up with a message says (1 item remaining) Downloading picture http:// etc etc Im I going about this all wrong? Look forward to hearing from someone. Matt -- View this message in context: http://n2.nabble.com/ECW-Raster-too-big-tp4626098p4626098.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] ECW Raster too big??
I have no problems displaying 4gb+ ECW files. Are you sure this is not a coordinate system issue? Have you tried debugging the setup: http://trac.osgeo.org/fdo/wiki/FdoGdalNotes Regards, Kenneth Skovhede, GEOGRAF A/S On 24-02-2010 15:29, pilchid wrote: Hello there. I have some ariel photography that I want to sisplay within my map viewer. The file is quite big however - just over 3 Gig. I loaded the file into an alias file and made a raster feature code connection through that. I thought It was going well as it seemed to preview in mapguide ok, but when it comes to displaying on the intranet it a no go. All my other layers are fine so it doesnt time out the map. The layer is visiable in the side plane, just doesnt physically appear. If I just randomly click in the map, where it normally says 'done' it comes up with a message says (1 item remaining) Downloading picture http:// etc etc Im I going about this all wrong? Look forward to hearing from someone. Matt ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
RE: [mapguide-users] MgApplicationException
Have you tried to configure server and services in Mapguide administration web module? From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Vittorio Ricchiuto Sent: Wednesday, February 24, 2010 3:32 PM To: mapguide-users@lists.osgeo.org Subject: [mapguide-users] MgApplicationException Hi all, I have a problem with MGOS 2.1. We’re doing a test on a job with 4 concurrent connections, but but it happens that server crash and was forced to reboot the entire server running with a lot of other applications. The error message is “Cannot create any more connections to the OSGeo.SDF FDO provider” On http://trac.osgeo.org/mapguide/ticket/462 says that the problem was solved by 2.1 version, but this seems not to be. Any ideas? PS: Sorry for my English Thanks, Vittorio Ricchiuto GIS Applications Developer HSH Informatica e Cultura srl Via Conversi, 92 75100 MATERA tel. 0835 388125 - fax 0835 269814 email: vittorio.ricchi...@hsh.it [cid:image001.jpg@01CAB568.5BB70DF0] ___ Le informazioni contenute nella presente comunicazione e i relativi allegati possono essere riservate e sono, comunque, destinate esclusivamente alle persone o alla Società sopraindicati. La diffusione, distribuzione e/o copiatura del documento trasmesso da parte di qualsiasi soggetto diverso dal destinatario è proibita, sia ai sensi dell’art. 616 c.p., che ai sensi del D.Lgs.n.196/2003. Se avete ricevuto questo messaggio per errore, Vi preghiamo di distruggerlo e di informarci immediatamente per telefono o inviando un messaggio all’indirizzo e-mail. inline: image001.jpg___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Re: ECW Raster too big??
Can I ask you how you went about loading up your ECW's? Perhaps you go about it a different way? Matt -- View this message in context: http://n2.nabble.com/ECW-Raster-too-big-tp4626098p4626220.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: Unable to view-Mark
Padmini, First off, Ivan did give you the answer you were looking for. The Let me google that for you link returned several pages which i found very helpful on what subversion and the trunk are. You should go back and revisit it if you have questions about it. I think the issue here is that you have loaded a 'custom' projection into your Map resource. Using your definition, and the EPSG code i provided, I had the same issue as you. The map was tiny. I realize that UTM Nad 83 Zone 11 is a pretty standard projection, but i think you have defined it in a way that MapGuide thinks it's a custom projection. However i was able to fix it by doing the following: Open MapGuide Studio. Open your map resource. Click the button to the right of Coordinate System. pull down the categories bar to UTM, NAD83 Datum In the available coordinate systems, select the code UTM83-11 press ok save your map resource. you could also do the same in Maestro: Open Maestro Open your map resource Click the button to the right of Coordinate System. Select Type EPSG code and type 26911. press validate. press ok. save your map resource. -Mark -- View this message in context: http://n2.nabble.com/Unable-to-view-Mark-tp4623889p4626559.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: Unable to view-Mark
On further investigation, your projection did work. I had the wrong map extents in my map resource. When I changed the coordinate system in Studio the 2nd time around, it automatically adjusted the extents of your map to reflect the change. (which is something i think would be great to have in Maestro too) I would think at this point the next step would be to get the trunk version and see if that helps. -Mark -- View this message in context: http://n2.nabble.com/Unable-to-view-Mark-tp4623889p4626599.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: EXAMPLE: Serving MapTiles directly
Very Nice! Perhaps you should put a new entry on the wiki. Re: installer The build.bat in the installer project has a prepare step which basically copies all the required files into a staging area. A zip distribution could just create a zip file of this staging area, and we're good to go. IIRC some of the values in some configuration files in Apache, PHP and Tomcat have been stubbed out with placeholders (that are written with the installer). I dunno what we can do about them. - Jackie -- View this message in context: http://n2.nabble.com/EXAMPLE-Serving-MapTiles-directly-tp4626665p4626771.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