Re: [mapguide-users] onload select a feature
Thanks Gordon. But a quick question about this, does this assume that you know the map you are loading? Because on my approach i have multiple maps and initially before anything else i use the mapguide api to change the filter of the layer for a certain map to load then thats the only time i needed to do a feature selection.. Right now what i am doing is on the initPanelHandler() i call do the querycontroller.php to select a feature but this approach is somewhat a hit or miss on the loaded maps.. because sometimes it selects the feafure 1st then maps finishes rendering or sometimes map finishes rendering but the selection would trigger 2-3 seconds late. -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Mapguide Fusion Legend Feature Count
Hi, Is there a function or script to get feature count of each legend? i would want to display count of features by legend category. -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] onload select a feature
Is there a way to right-away select a feature on mapload on fusion? -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] setExtents on mapload fusion
Thank you. It worked! -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] hiding fusion parameters applicationdefinition
Thank you Jackie. It worked! -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] hiding fusion parameters applicationdefinition
Is there a way to hide the application definition parameter when loading fusion template maps? because right now i am doing something like this www.mymap.com?ApplicationDefinition=Library://Maps/AppDef.ApplicationDefinition is there a way to just call it www.mymap.com and still load my applicationdefinition on the script end? Thank you -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] setExtents on mapload fusion
Is there a way on fusion mapwidget to set right away the map extents? -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] change layer definition runtime
Hi, Have you experience that after doing this update of layer using ajax and redraw a couple of time. Mapguide server breaks? because i suddenly get session expired or magguide server is not responding.. Im on the site the whole time and doing switching of layers to stress test it. But suddenly it turned pink and got that message reload map and got that error. Thanks -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Query filter date comparison
SQL Server Spatial -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Query filter date comparison
Hi, is there any way to do date comparison filter without converting the date into string? Because i am using it like this on my layers ToString(ScheduleDate, 'MM/DD/') = ToString( CurrentDate( ) ,'MM/DD/YY') its seems quite slow -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] PanQuery and Maptip conflict
Thank Jackie, i did found out about the panquery.js error and omitted the unused var. Also as for the Maptip.js i also did modified the _hide function and included: this.mouseIsDown=false the reason of the conflict was the mouseup event of maptip was not called when both maptip and panquery is implemented, panquery mouseup supersedes it. So its ending up the maptip just showing once only. -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] PanQuery and Maptip conflict
Hi, Has anybody used panquery? initially if was throwing an error so i modified the panquery.js to fix it. But i noticed that when using panquery the maptip breaks, maptips only happens initially and as soon as i do the panquery, maptip is gone. Has anybody encountered this issue? Thanks been stuck here for quite a while. -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Maestro API - Layer filter
Did you get any response or resolution on this? I am trying to do the same and also getting an error too. -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] MaestroAPI Change layer filter c#
Hi, Is there anyway to change the filter of a layer or updating fileter of layer defition using the MaestroAPI rather than using Maestro application? I'd like to modify the filter on page_load event so i dont need to wait for the map to get loaded 1st before replacing the layers. using C# and flexible layout/fusion Many thanks -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] map na panel in fusion template
Hi, Is there a way to enable or show the map navigation panel on fustion template? i am trying to find where in the js for me to tweak or enable it. Because once i load the fusion template, the nav panel is now shown anymore. its the small floating thingy which zooming in and out and panning.. thanks hope any one can help, been with this for almost a week already. -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Get coordinates fusion templates
Thanks RenoSun. It worked. also just another question, is there any function the can do a get coordinate for full map?. I wanna have this 1 button that gets a fullpoints of the whole map with scale atleast 299 then call the getmapimage to generate the image. Is there such function? -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Get coordinates fusion templates
Hi, Is there a way to get coordinates (lower left coord and upper right coord) without using the .getselection? reason is, if i use get selection, whatever feature i hit would get included on the coordinates. What i am trying to achieve is highlight an area of the map and generate an image of it using the GETMAPIMAGE of mapagent.fcgi its like doing a highlight area screen capture thing. Thanks. Hope to hear any ideas here, been stuck for a while figuring how to do this. -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Mapguide 3.1 Add layer on runtime c#
Thanks Jackie. It worked. For some reason, the function is accepting both with and without parameter. As soon as i remove the paramter everything worked. -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Mapguide 3.1 Add layer on runtime c#
Hi, I was able to add a new layer using mapguide api 3.1 c# hit forcerefresh and map.save(resource) but when i try to access it on javascript i still cant see the new layer. On Mapguide 2.6.1 and fusion 2.6 my code is working fine. Any thoughts or help? been stuck here for quite a while. Thanks in advance. -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] change layer definition runtime
Anyone tried this with MGOS 3.1 and Fusion 3? apparantly after i updated everything to this version, none of the code works. -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Fusion Layout Print
Hi, I am trying to use the print button of the fusion layout, but i wanted to define a certain area and generate that image to be printed. But i am a bit confuse on how to do it, when i try to highlight a certain section and hit the print button, the generate images is not the one i selected. Is there a code by code to it? I have looked at the GetMapIMage function, but im not sure what to feed on those paramters base on my highlighted section on the map. any help or ideas? Been stuck with this one for quite sometime. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Fusion-Layout-Print-tp5331536.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] change layer definition runtime
Hi, Back again, was able to make it work before with MapGuide 2.6.1 32bit now upgraded to 3.1.0 64bit.. Same code with changing layer at runtime.. funny thing now, nothing happens, but if select something on the map, it throws an error inside fusion-compressed.js, 'layerName' does not exists. From the c# code layers.remove(layer) it did work it seems that the layer was really removed on the map.. but the mapwidget itself didnt refresh to the new layer, it still looks the same. did call the command. mapWidget.redraw, mapWidget.reloadMap(). but nothing happens. Tried almost everything but its not working at all.. Is there something that i missed on the code? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/change-layer-definition-runtime-tp5284382p5317071.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Fusion template setExtents Problem
Hi, I am having a problem when i am setting extents using mapWidget.setExtents. Nothing is happening on the map if i call that function and keyed in the minx,miny,maxx,maxy but if i set the initialextents and max extents with the same value of minx, miny, maxx, maxy , maps is loaded properply. But the click selection of layer object messes up. Anyone can help here? pls.. im reaching on my dead end on this. THanks MC -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Fusion-template-setExtents-Problem-tp5315720.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Session Expired Error
Hi, has anyone encountered this error? Session has expired or is invalid. Please log in again. The session (7d458f4a-eea0-11e6-8000-005056a54c45_en_MTI3LjAuMC4x0AFC0AFB0AFA) has expired. - MgSiteServiceHandler.ProcessOperation() line 83 file c:\working\build_area\mapguide\2.6.1\x86\mgdev\server\src\services\site\SiteServiceHandler.cpp - MgOpAuthenticate.Execute() line 116 file c:\working\build_area\mapguide\2.6.1\x86\mgdev\server\src\services\site\OpAuthenticate.cpp - MgServerSiteService.Authenticate() line 709 file c:\working\build_area\mapguide\2.6.1\x86\mgdev\server\src\services\site\ServerSiteService.cpp - MgSecurityManager.Authenticate() line 224 file c:\working\build_area\mapguide\2.6.1\x86\mgdev\server\src\common\manager\SecurityManager.cpp - MgSessionCache.GetSessionInfo() line 179 file c:\working\build_area\mapguide\2.6.1\x86\mgdev\server\src\common\manager\SessionCache.cpp I have another application on the same server that work, but it is build as a website project on .net now i created a web application project but when i deploy on the same server i get this error. But when i access it using localhost, everything works fine. Hope someone can shed some light here, going nuts and project is so delayed. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Session-Expired-Error-tp5307118.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Opening GeoTif File
Can make mapguide assemblies (using c#) open a geotif to read or update data on it? Thanks -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Opening-GeoTif-File-tp5295178.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] change layer definition runtime
After refreshing, the select button at the toolbar doesnt work anymore, each time i select an objct on the map. It does nothing, any idea? need help been stuck here for almost a week.. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/change-layer-definition-runtime-tp5284382p5288779.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] Map Selection Gone
Hi, I am using fusion and was able to change layers using MapGuide API c#, but after chaging the layers and calling the mapWidget.redraw, the map selection is gone , whenever i click something on the map, nothing happens. Did i miss something? Please help -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Map-Selection-Gone-tp5288567.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] change layer definition runtime
Thanks, found it and made it work. Also, sorry for asking this here cause i know ive already posted this on a new thread. Do you happen to know how to refresh the jxpanel? because it seems that when i replaces all the layers via the .net api's, the jxpanels doesnt work anymore with the changed map, the legends and the selections doesnt work anymore. Thhanks -- View this message in context: http://osgeo-org.1560.x6.nabble.com/change-layer-definition-runtime-tp5284382p5287171.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] Fusion JX Panel
Hi, Is there a way to refresh the JX Panel for fusion? I had the map change layers but the panel properties is still attached to the previous map. Thanks Regards -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Fusion-JX-Panel-tp5285642.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] change layer definition runtime
Thank Liglio, It worked well! :) last question, is there a way to also change featuresourceid , featureclassname? the properties are "read only" Thanks -- View this message in context: http://osgeo-org.1560.x6.nabble.com/change-layer-definition-runtime-tp5284382p5284992.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] change layer definition runtime
Solved the error. I should be getting the mapname from the mapdwiget. Now there is no error. But it looks like i need to refresh fusion mapwidget for the layers to effect. Only thing now i think is to refresh the mapwidget for the layers to take effect. But it seems that layerTemp.ForceRefresh(); wont refresh the widget. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/change-layer-definition-runtime-tp5284382p5284847.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] change layer definition runtime
Hi Liglio, Thanks for the quick update, i am getting this error when it reaches map.open if i keyed in: resourceService and resourceidentifier "Resource data was not found: RuntimeData" if i keyed in: resourceService and mapName or mapdefinition Invalid resource path: Library://Langan Floor Plans My scenario is i have fusion, the i am calling the function mapwidget.getSessionId(), as soon i get the session id, i have a ajax to call server side method and call UtilMap up = new UtilMap(sessionid, "Library://Langan Floor Plans/Floor Plan Map.MapDefinition") but if i call map.create(resourceIdentifier,"anyName") i works. i can even access all layers, but is there any difference between the open and create? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/change-layer-definition-runtime-tp5284382p5284835.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] change layer definition runtime
Hi Liglio, Sorry to have disturbed you but, what namespace did you use for Util.SetTagTextContent and where is the method GetLayerByName? Thanks -- View this message in context: http://osgeo-org.1560.x6.nabble.com/change-layer-definition-runtime-tp5284382p5284823.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] change layer definition runtime
Thanks Liglio I will definitely give this shot. Ill let you know if it works. Thanks thanks a bunch. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/change-layer-definition-runtime-tp5284382p5284819.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] change layer definition runtime
Hi, I have created layer definition from each maps on Maestro and just 1 MapDefinition, What i am trying to do is the just updated the layerdefinition of the mapdefinition to the specific selected map. I wanted to do it runtime. I cam currtently using fusion, is this possible to do on JS or just .net? And how? i am quite stuck now. Also another option for me to do is the create mapdefinition on runtime, but still no success on doing this. Any help will do. Thanks in advance -- View this message in context: http://osgeo-org.1560.x6.nabble.com/change-layer-definition-runtime-tp5284382p5284782.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] change layer definition runtime
Is there a way to change or update layer defintion on runtime? W/o using the .net api warpper? I am currently using a fusion template, but i wanted to change the layer defintion the map is using to a different layerdefinition. Is it spossible to do the the fusion script? i wanted to do it before maps load and refreshing the map Thank you very much. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/change-layer-definition-runtime-tp5284382.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] Where is the file specified in ResourceId tag located?
Is there a way to use a separate mapdefinition file? Because i am trying to create mapdefition on the fly. I am getting data from the DB. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Where-is-the-file-specified-in-ResourceId-tag-located-tp5043385p5281372.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