Skip to content

Commit

Permalink
moved the case to the top to not hit the cartesiantilelayergameobject…
Browse files Browse the repository at this point in the history
… case, because wmslayergameobject inherits from that
  • Loading branch information
bozmir committed Oct 14, 2024
1 parent 1c01ead commit ff38db6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Assets/Scripts/Layers/LayerUIManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ private Sprite GetProxyLayerSprite(LayerGameObject layer)
{
switch (layer)
{
case WMSLayerGameObject _: //requested to be equal to geojsonlayer
case WMSLayerGameObject _:
case GeoJsonLayerGameObject _:
return layerTypeSprites[8];
case CartesianTileLayerGameObject _:
case Tile3DLayerGameObject _:
Expand All @@ -183,8 +184,7 @@ private Sprite GetProxyLayerSprite(LayerGameObject layer)
return layerTypeSprites[6];
case GeoJSONLineLayer _:
return layerTypeSprites[7];
case GeoJsonLayerGameObject _:
return layerTypeSprites[8];

case GeoJSONPointLayer _:
return layerTypeSprites[9];
default:
Expand Down

0 comments on commit ff38db6

Please sign in to comment.