CoastalResilienceNetwork / regional-planning

ArcGIS and WMS map layer plugin for the GeositeFramework
0 stars 2 forks source link

accommodating grouped layers from external map services #45

Closed zferdana closed 8 years ago

zferdana commented 8 years ago

In two cases I am trying to configure layers.json to show grouped layers but it crashes the plugin:

https://github.com/CoastalResilienceNetwork/newjersey-region/blob/development/plugins/regional-planning/layers.json

and

https://github.com/CoastalResilienceNetwork/unitedstates-region/blob/development/plugins/regional-planning/layers.json

Not sure if the syntax is wrong or it won't allow for grouped layers from other servers

mmcfarland commented 8 years ago

@zferdana could you point out the line numbers in the two links that you posted where you are working through the syntax for grouping that seems to be failing?

zferdana commented 8 years ago

for https://github.com/CoastalResilienceNetwork/newjersey-region/blob/development/plugins/regional-planning/layers.json the fail happens between lines 218 and 233 for the Hurricane Sandy service group layer. The U.S. one has multiple group layers that cause failure. Just not sure if grouping in general with external services is the problem, since we have them working with our own services.

caseycesari commented 8 years ago

I got the config linked above working locally by removing lines 229 and 230.

A good thing to do after editing the config (or any JSON document), is to paste it into jsonlint.com and click "Validate". It will report any errors or "Valid JSON" if there are no errors.

Here's a screenshot of the layers working on my local machine.

image

zferdana commented 8 years ago

Many thanks Casey - I very well might have too many brackets and parentheses for the US one as well. They did check out with Validator, which always has me scratching my head. Do I need to buy the Pro version?

zferdana commented 8 years ago

Actually, Casey, does Final Surge Area come up for you? Like your graphic I can only get NYC Surge Area to show...

caseycesari commented 8 years ago

They did check out with Validator, which always has me scratching my head. Do I need to buy the Pro version?

As far as I can tell, you can use the pro version for free. I think the functionality is the same as the normal version. It's just a different interface.

Like your graphic I can only get NYC Surge Area to show...

It looks like it's just a typo in one of the layer names in the config. "NYC - Final High Resolution Surge Area - Field-Verified February 14, 2013 (click on surge for details)" should be "Final High Resolution Surge Area - Field-Verified February 14, 2013 (click on surge for details)" (dropped the NYC - prefix.)

image