Re: [mapguide-users] Map Switch, Base Layer groups issue

2018-01-09 Thread RenoSun
Firstly, I am using Fusion turquoiseyellow template using fusionSF.js. 

I modified index.html, and fusionSF.js to achieve my goal.

Under  
window.onload = function () {
//if it is first time load fusion
Fusion.initializeLocale();  //need to call this first if
String.Translate is to be used in the onload

//add this function to update URL parameter
 function getParamFromTop(sname) {
//var params =
location.search.substr(location.search.indexOf("?") + 1);
var params =
window.top.location.search.substr(window.top.location.search.indexOf("?") +
1);
var sval = "";
//console.log("test");
params = params.split("&");
// split param and value into individual pieces
for (var i = 0; i < params.length; i++) {
temp = params[i].split("=");
if ([temp[0]] == sname) { sval = temp[1]; }
}
return sval;
}


var initPanelHandler = function () {
 if (isTaskPaneRegistered) return;
...
//add these code under initPanelHandler...
if (getParamFromTop('curextent') != '' && getParamFromTop('curextent') !=
null && getParamFromTop('first') == 1) {
var ext = getParamFromTop('curextent').split(',');
//console.log(ext);
ext = new OpenLayers.Bounds(ext[0], ext[1], ext[2], ext[3]);
mapWidget.setExtents(ext);
//console.log("setExt");
}
else {
   setGetParameter("first", "1");
}
mapWidget.registerForEvent(Fusion.Event.MAP_EXTENTS_CHANGED,
rememberedExtent);
...






--
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] Display Historival value assigned to a polygon

2018-01-09 Thread Liglio
Thanks to RenoSun and Hans for your help,

I used the Hans solution becouse it appears to be easier, and it works. Very
clever.



--
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] Moving to MGOS from AIMS

2018-01-09 Thread Martin Morrison
Please don't misunderstand.  My comment was more who else is willing so as not 
to burden you...



From: mapguide-users  on behalf of 
Jackie Ng 
Sent: Monday, January 8, 2018 10:56 PM
To: mapguide-users@lists.osgeo.org
Subject: Re: [mapguide-users] Moving to MGOS from AIMS

I don't want or intend to be the sole "silo of knowledge" for MapGuide/FDO.
If there are competent C++ developers willing to step up to the plate, I'm
happy to impart whatever knowledge and guidance.

- Jackie



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
OSGeo.org - MapGuide Users | Mailing List 
Archive
osgeo-org.1560.x6.nabble.com
MapGuide Users forum and mailing list archive. If you want your post to be seen 
by most subscribers, you MUST subscribe to the mailing lists using the above 
link. This mailing list is for the...



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

Re: [mapguide-users] Moving to MGOS from AIMS

2018-01-09 Thread Hans Milling
We moved from AIMS to MGOS about 5 years ago. Autodesk told us, to be able to
sell AIMS we had to start selling all of Autodesks products. That is when we
decided to go Open Source. Support from Autodesk was crap and just to obtain
a license took 1-2 weeks. New support personal all the time and couldn't
understand that MapGuide was server software and not a windows program with
a help->license menu. We have never regretted moving to MGOS instead.
We are using the GDAL provider for ECW at our clients (requires license).
But it works perfectly, no problems. Also someone mentioned in this thread,
concerns about Oracle support. We have a few clients that uses oracle
databases. The Oracle provider that comes with MGOS works great, we have not
encountered any problems.
As for DWG support, none of our clients had problems, the few that uses
Autodesk products just save in a different format than AutoCAD DWG when
creating new files for the MapGuide server. Not a big deal for them. Would
be nice though to have the provider available in MGOS, but it is not a
"must" for us.

Best regards
  Hans Milling...



--
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] Redline + Language

2018-01-09 Thread torrini
My edits:


*markupmain.php*
[...]
function SubmitCommand(cmd)
{
var commandInput = document.getElementById("commandInput");
commandInput.value = cmd;

if (cmd == CMD_EDIT) {
*markupForm.action = "editmarkup.php?LOCALE="+"";*
} else if (cmd == CMD_UPLOAD) {
markupForm.action = "uploadmarkup.php";
} else if (cmd == CMD_EDITSTYLE) {
markupForm.action = "editmarkupstyle.php";
}
else {
markupForm.action = "markupmain.php";
}
markupForm.submit();
}
[...]

*editmarkup.php*
[...]
function CloseEditor()
{
ClearDigitization(true);
var map = Fusion.getMapByName(mapName).mapWidget;
map.message.clear();

var editForm = document.getElementById("editForm");
*editForm.action = "markupmain.php?"+"";*

editForm.submit();
}
[...]

" method="post"
enctype="application/x-www-form-urlencoded" id="editForm" target="_self">

[...]


Still the widget switches back to english :-/
The function CloseEditor() won't be used till the user closes the dialog.
But the language already changes when one line is made. So the functions
AddLine() and SubmitCommand(cmd) are used. That's why I edited the form in
the html-part (action="editmarkup.php?locale=").



--
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