[mapguide-users] Mapguide Open source 2.4 RC1 selection problem
marfalox
mfalossi at hotmail.com
Sun Sep 16 14:22:52 PDT 2012
Hi all,
working with MGos 2.4 RC1 on ubuntu 12.04 we got a problem with selection
properties, not showing anymore in properties panel (ajax viewer).
Apache log said that
Strict Standards: Non-static method DOMDocument::loadXML() should not be
called statically in
/usr/local/mapguideopensource-2.4.0/webserverextensions/www/mapviewerphp/getselectedfeatures.php
on line 420
Modifing the GetLayerPropertyMappings function in getselectedfeatures.php
selection properties worked again as expected. The new function is:
function GetLayerPropertyMappings($resourceService, $layer) {
$mappings = array();
$byteReader =
$resourceService->GetResourceContent($layer->GetLayerDefinition());
//inizio modifica
$xmldoc = new DOMDocument();
$xmldoc->loadXML(ByteReaderToString($byteReader));
//$xmldoc = DOMDocument::loadXML(ByteReaderToString($byteReader));
//$mappingNodeList = $xmldoc->getElementsByTagName('PropertyMapping');
$mappingNodeList = $xmldoc->getElementsByTagName('PropertyMapping');
for ($i=0; $i<$mappingNodeList->length; $i++) {
$mapping = $mappingNodeList->item($i);
$nameElt = $mapping->getElementsByTagName('Name');
$name = $nameElt->item(0)->nodeValue;
$valueElt = $mapping->getElementsByTagName('Value');
$value = $valueElt->item(0)->nodeValue;
$mappings[$name] = $value;
}
return $mappings;
}
Same problem happened up to now in mapviewerphp/legend.php and
schemareport/displayschemafunctions.php
Anybody else with the same problem?
Marco
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapguide-Open-source-2-4-RC1-selection-problem-tp5002182.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list