View Javadoc
1   package fr.ifremer.dali.map.config;
2   
3   import fr.ifremer.dali.config.DaliConfiguration;
4   import fr.ifremer.dali.map.osm.OSMService2;
5   import org.geotools.tile.TileService;
6   
7   /**
8    * @author peck7 on 13/06/2019.
9    */
10  public class SatelliteMapConfiguration extends OSMMapConfiguration {
11  
12      @Override
13      public String getUrl() {
14          return DaliConfiguration.getInstance().getMapSatelliteUrl();
15      }
16  
17      @Override
18      public TileService getTileService() {
19          // the specified free api key is owned by E-IS
20          return new OSMService2(getBaseLayerName(), getUrl(), "ArAUP36vxq7LOYOZNQcM", ".jpg");
21      }
22  
23      @Override
24      public String getBaseLayerName() {
25          return "satellite";
26      }
27  
28  }