Discussion:
[mapguide-users] Mapguide 3.0 - Composite style not displaying in fusion legend
Mark Volz (LeapCAD)
2015-09-07 07:48:28 UTC
Permalink
All,

I've notice an issue in the fusion legend widget after upgrading a site to
3.0.

If I have a point, line or polygon style on a vector layer then the relevant
style is displayed correctly in the legend for both the Fusion and AJAX
viewers. However if I have a composite style then only the Legend in AJAX is
viewing correctly, in fusion I get the default icon i.e. blue image icon.

Any thoughts on what I have done wrong or any config(s) I need to change?

I ran a repository update thinking that it might have been a legacy
layer/map schema issue but I get the same issue with newly created layers as
well.

Thanks in advance for any help.

Regards
Mark
Jackie Ng
2015-09-07 10:50:55 UTC
Permalink
When you inspect the initial JSON payload when the Fusion application starts
up, it should have inline data URIs for each layer icon. Does the composite
style layers have such data URIs?

- Jackie



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapguide-3-0-Composite-style-not-displaying-in-fusion-legend-tp5222875p5222900.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
Mark Volz (LeapCAD)
2015-09-07 18:13:07 UTC
Permalink
Jackie,

Yes the composite styles do have a value set in the
runtimemap\layer\ScaleRange\FeatureStyle\rule\icon

Interestingly the values are different between 2 composite, so it Is not
just picking up a default style.

Below is a copy of the JSON;

{"RuntimeMap":{"@version":["3.0.0"],"@xmlns:xsi":["http://www.w3.org/2001/XM
LSchema-instance"],"@xsi:noNamespaceSchemaLocation":["RuntimeMap-3.0.0.xsd"]
,"BackgroundColor":["ffffffff"],"CoordinateSystem":[{"EpsgCode":["3857"],"Me
ntorCode":["WGS84.PseudoMercator"],"MetersPerUnit":["1"],"Wkt":["PROJCS[\"WG
S84.PseudoMercator\",GEOGCS[\"LL84\",DATUM[\"WGS84\",SPHEROID[\"WGS84\",6378
137.000,298.25722293]],PRIMEM[\"Greenwich\",0],UNIT[\"Degree\",0.01745329251
9943295]],PROJECTION[\"Popular Visualisation Pseudo
Mercator\"],PARAMETER[\"false_easting\",0.000],PARAMETER[\"false_northing\",
0.000],PARAMETER[\"central_meridian\",0.00000000000000],UNIT[\"Meter\",1.000
00000000000]]"]}],"DisplayDpi":["96"],"Extents":[{"LowerLeftCoordinate":[{"X
":["13941204.309762172"],"Y":["-1045038.0637799533"]}],"UpperRightCoordinate
":[{"X":["14071718.113563014"],"Y":["-949375.83516509994"]}]}],"IconMimeType
":["image/gif"],"Layer":[{"ActuallyVisible":["true"],"DisplayInLegend":["tru
e"],"ExpandInLegend":["true"],"FeatureSource":[{"ClassName":["Default:Airpor
ts"],"Geometry":["Geometry"],"ResourceId":["Library://IPG/Data/Airports.Feat
ureSource"]}],"LayerDefinition":["Library://IPG/Layers/Airports_mark.LayerDe
finition"],"LegendLabel":["Airports_mark"],"Name":["Airports_mark"],"ObjectI
d":["90f35dc6-5589-11e5-8001-80ee7331b0d1"],"ScaleRange":[{"FeatureStyle":[{
"Rule":[{"Filter":null,"Icon":["R0lGODlhEAAQAIQAAAQCBJyenFRSVNza3Dw+PAwODLSy
tGxqbPz6/AwKDBQWFLy6vHx+fAQGBKyurOTm5BQSFGxubPz+/Ly+vP///wAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABQALAAAAAAQABAAAAVeICWOFACQKJoUaQskydmSgKLI
s9hER5OPkMkEkgJAjscCAlFAHk2FQmCxGEgkA2ogenoVDNewxFCI0RIMMcNcFIgFONT3QSA8yK6E
o7xysM9sL38jK3EAZUVxIiYjIQA7"],"LegendLabel":null}],"Type":["1"]}],"MaxScale
":["1000000000000"],"MinScale":["0"]}],"Selectable":["true"],"Type":["1"],"V
isible":["true"]},{"ActuallyVisible":["true"],"DisplayInLegend":["true"],"Ex
pandInLegend":["true"],"FeatureSource":[{"ClassName":["Default:Health_Hospit
al"],"Geometry":["Geometry"],"ResourceId":["Library://IPG/Data/Health_Hospit
al.FeatureSource"]}],"LayerDefinition":["Library://IPG/Layers/Health_Hospita
l.LayerDefinition"],"LegendLabel":["Health_Hospital"],"Name":["Health_Hospit
al"],"ObjectId":["90f5c00c-5589-11e5-8000-80ee7331b0d1"],"ScaleRange":[{"Fea
tureStyle":[{"Rule":[{"Filter":null,"Icon":["R0lGODlhEAAQAMIAAAQmTIQeTCQuXBQ
yZAQmXPQKNP///wAAACH5BAEAAAYALAAAAAAQABAAAANCaKowEQOsuVopkVKLpa7DlX1M2G1AChD
mQKjpIM/CJcxzcO18//TAHQQ3qBVuRNiq9YJtWh4SZySFkkqi6KfxoCoSADs="]}],"Type":["4
"]}],"MaxScale":["1000000000000"],"MinScale":["0"]}],"Selectable":["true"],"
Type":["1"],"Visible":["true"]},{"ActuallyVisible":["true"],"DisplayInLegend
":["true"],"ExpandInLegend":["true"],"FeatureSource":[{"ClassName":["Default
:PROJECTS"],"Geometry":["Geometry"],"ResourceId":["Library://IPG/Data/PROJEC
TS.FeatureSource"]}],"LayerDefinition":["Library://IPG/Layers/PROJECTS.Layer
Definition"],"LegendLabel":["PROJECTS"],"Name":["PROJECTS"],"ObjectId":["90f
5c00c-5589-11e5-8001-80ee7331b0d1"],"ScaleRange":[{"FeatureStyle":[{"Rule":[
{"Filter":null,"Icon":["R0lGODlhEAAQAOMAAAQCBETSBNRyDHS2BORqBAT+BNxuDMSCBP//
/wAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAgALAAAAAAQABAAAARBEMkJhAAza3IO0WAVBBeY
cUXhmZKYkpiJpuoXCgFdwOCsrxmXblea+IZAhHBIjB2ZqyWz+Zx6cNMhyTDoer9fQwQAOw=="]}]
,"Type":["4"]}],"MaxScale":["1000000000000"],"MinScale":["0"]}],"Selectable"
:["true"],"Type":["1"],"Visible":["true"]},{"ActuallyVisible":["true"],"Disp
layInLegend":["true"],"ExpandInLegend":["true"],"FeatureSource":[{"ClassName
":["Default:Airports"],"Geometry":["Geometry"],"ResourceId":["Library://IPG/
Data/Airports.FeatureSource"]}],"LayerDefinition":["Library://IPG/Layers/Air
ports.LayerDefinition"],"LegendLabel":["Airports"],"Name":["Airports"],"Obje
ctId":["90f82270-5589-11e5-8000-80ee7331b0d1"],"ScaleRange":[{"FeatureStyle"
:[{"Rule":[{"Filter":null,"Icon":["R0lGODlhEAAQAIAAAAQCBP///yH5BAEAAAEALAAAA
AAQABAAAAIjjI+py+0IYjxyVkkvvoaH+mkZMFomRGpTwoEP9oTku8Zz7BQAOw=="]}],"Type":[
"4"]}],"MaxScale":["1000000000000"],"MinScale":["0"]}],"Selectable":["true"]
,"Type":["1"],"Visible":["true"]}],"MapDefinition":["Library://IPG/Maps/mark
_test.MapDefinition"],"Name":["mark_test1441648513025"],"SessionId":["8f331d
96-5589-11e5-8000-80ee7331b0d1_en_MTI3LjAuMC4x0AFC0AFB0AFA"],"SiteVersion":[
"3.0.0.8701"]}}
Mark Volz (LeapCAD)
2015-09-13 09:06:19 UTC
Permalink
All,

Any thoughts?

I have done some further investigations myself and found;
1) legend works fine in AJAX for simple and composites
2) if I preview the layers or maps in either maestro or studio then they
work fine
3) it is only composite layers that do not display correct in the legend,
they display correctly on the map though.

I have also found this is the issue in MapGuide 2.6.1.

I have tried;
1) importing a package from a 2.6 server with the same results
2) importing the repository from a 2.6 server then run an rep. upgrade same
results
3) brand new installation of 3.0 on a brand new virtual server ... yep same
results

Data sources are shape, mapinfo tab and oracle (not that this seems to make
a difference).

Any help here would be greatly appreciated.

Mark
maherich
2016-12-14 09:11:02 UTC
Permalink
Hi,
any solution to this problem? We are facing it too.
Martin



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapguide-3-0-Composite-style-not-displaying-in-fusion-legend-tp5222875p5299769.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
GordonL
2017-04-07 13:38:11 UTC
Permalink
Any luck on this one?




--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapguide-3-0-Composite-style-not-displaying-in-fusion-legend-tp5222875p5316317.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
GordonL
2017-04-08 01:03:51 UTC
Permalink
Yes, all composite layers (for both 3 and 3.1) show as raster in the Layout.

It uses legend-raster.png

<Loading Image...>



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapguide-3-0-Composite-style-not-displaying-in-fusion-legend-tp5222875p5316386.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
GordonL
2017-04-09 19:37:23 UTC
Permalink
Which file?
The xml for the Layer Definition?





--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapguide-3-0-Composite-style-not-displaying-in-fusion-legend-tp5222875p5316554.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
BMason
2017-04-10 16:14:57 UTC
Permalink
Has anyone found a solution for composite styles not displaying in fusion
legend?
Composite styles are very useful so it would be a shame to have to revert
back to basic styles alone. We have many map layers that will need to be
individually reverted back to using basic styles so this is not the option
we were hoping for.



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapguide-3-0-Composite-style-not-displaying-in-fusion-legend-tp5222875p5316696.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
Lisa Weber
2017-04-11 22:55:52 UTC
Permalink
When I moved two sites from 2.6 to release 3.0 I experienced the issue for all composite layers. All of the theme layers had to be rebuilt. The other layers had to be manually accessed in Maestro and repointed. To move 200 layers across using a package required nearly 60 hours of work. Going from 3.0 to 3.1 this issue did not occur; have you tried going straight to 3.1?

Lisa

-----Original Message-----
From: mapguide-users [mailto:mapguide-users-***@lists.osgeo.org] On Behalf Of BMason
Sent: Tuesday, 11 April 2017 2:15 AM
To: mapguide-***@lists.osgeo.org
Subject: Re: [mapguide-users] Mapguide 3.0 - Composite style not displaying in fusion legend

Has anyone found a solution for composite styles not displaying in fusion
legend?
Composite styles are very useful so it would be a shame to have to revert back to basic styles alone. We have many map layers that will need to be individually reverted back to using basic styles so this is not the option we were hoping for.



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapguide-3-0-Composite-style-not-displaying-in-fusion-legend-tp5222875p5316696.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
mapguide-***@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Jackie Ng
2017-04-12 15:39:05 UTC
Permalink
Please try this build of Fusion (if you're on MGOS 3.0) and see if it
resolves your issue

http://download.osgeo.org/fusion/fusion-3.0.1-test.zip

This is the SVN HEAD of the 3.0 branch of Fusion, which has had many small
changes and fixes since the version that came with MGOS 3.0

- Jackie



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapguide-3-0-Composite-style-not-displaying-in-fusion-legend-tp5222875p5317042.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

Loading...