Ejemplo n.º 1
0
        public MapData(IOptions <PathOptions> pathOptions,
                       ILogger <MapData> logger,
                       ITileStorage tileStorage,
                       IGeoJsonStorage geoJsonStorage,
                       IStyleStorage styleStorage,
                       IPackStorage packStorage,
                       IFontStorage fontStorage,
                       IWorkspaceTileCache tileCache,
                       IWorkspaceStyleCache styleCache,
                       ILoggerFactory loggerFactory)
        {
            _layerDict   = new Dictionary <string, ILayer>();
            _pathOptions = pathOptions.Value;
            _logger      = logger;
            _logger.LogDebug($"Creating MapData root={_pathOptions.Root}");
            _loggerFactory = loggerFactory;

            _tileStorage    = tileStorage;
            _fontStorage    = fontStorage;
            _geoJsonStorage = geoJsonStorage;
            _styleStorage   = styleStorage;
            _packStorage    = packStorage;

            _tileCache  = tileCache;
            _styleCache = styleCache;

            CheckDirectories();
            PopulateFonts();
            OpenTiles();
        }
Ejemplo n.º 2
0
 public LayerStyleService(IMapData mapData,
                          ILogger <LayerStyleService> logger,
                          IStyleStorage styleStorage,
                          IWorkspaceStyleCache styleCache)
 {
     _styleStorage = styleStorage;
     _styleCache   = styleCache;
     _mapData      = mapData;
     _logger       = logger;
 }
Ejemplo n.º 3
0
 public GetLayerController(IMapData mapData,
                           IResourceLinksGenerator resourceLinksGenerator,
                           ITileStorage tileStorage,
                           IStyleStorage styleStorage)
 {
     _mapData = mapData;
     _resourceLinksGenerator = resourceLinksGenerator;
     _tileStorage            = tileStorage;
     _styleStorage           = styleStorage;
 }