View Javadoc
1   package fr.ifremer.dali.map.config;
2   
3   import com.google.common.collect.ImmutableList;
4   import fr.ifremer.dali.map.MapLayerDefinition;
5   import fr.ifremer.dali.map.OfflineMapConfiguration;
6   
7   import java.util.List;
8   
9   /**
10   * @author peck7 on 13/06/2019.
11   */
12  public class EmbeddedShapeMapConfiguration implements OfflineMapConfiguration {
13  
14      // ordered list of shape files with referenced envelopes (comes from Sextant configuration)
15      private static final List<MapLayerDefinition> SHAPE_ORDERED_LAYER_LIST = ImmutableList.of(
16              new MapLayerDefinition("continent_wgs84"),
17              new MapLayerDefinition("europe", SextantWMSMapConfiguration.EUROPE_VIEW_ENVELOPE),
18              new MapLayerDefinition("france_metropolitaine", SextantWMSMapConfiguration.FRANCE_VIEW_ENVELOPE, false),
19              new MapLayerDefinition("SHOM_TCH_V1_MARTINIQUE_P", SextantWMSMapConfiguration.MARTINIQUE_VIEW_ENVELOPE),
20              new MapLayerDefinition("SHOM_TCH_V1_GUADELOUPE_P_v1", SextantWMSMapConfiguration.GUADELOUPE_VIEW_ENVELOPE),
21              new MapLayerDefinition("SHOM_TCH_V1_GUADELOUPE_stbarth_stmartin_P", SextantWMSMapConfiguration.STMARTIN_VIEW_ENVELOPE),
22              new MapLayerDefinition("SHOM_TCH_V1_STPIERRE_P", SextantWMSMapConfiguration.STPIERRE_VIEW_ENVELOPE),
23              new MapLayerDefinition("IFR_DOI_RUN_LIMITE_TERRE_MER_P", SextantWMSMapConfiguration.REUNION_VIEW_ENVELOPE),
24              new MapLayerDefinition("SHOM_TCH_V1_MAYOTTE_P", SextantWMSMapConfiguration.MAYOTTE_VIEW_ENVELOPE),
25              new MapLayerDefinition("SHOM_TCH_V1_GUYANE_P", SextantWMSMapConfiguration.GUYANE_VIEW_ENVELOPE),
26              new MapLayerDefinition("cotes_compilation_ZEE_NC", SextantWMSMapConfiguration.CALEDONIE_VIEW_ENVELOPE)
27      );
28  
29      @Override
30      public boolean isProgressiveRender() {
31          return false;
32      }
33  
34      @Override
35      public String getBaseLayerName() {
36          return null;
37      }
38  
39      @Override
40      public List<MapLayerDefinition> getMapLayerDefinitions() {
41          return SHAPE_ORDERED_LAYER_LIST;
42      }
43  }