blob: 391f333c55c03e14b561be826cfa6942d45c822e [file] [log] [blame]
Sean Condon83fc39f2018-04-19 18:56:13 +01001/*
2 * Copyright 2015-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16import { Injectable } from '@angular/core';
17import { GlyphDataService } from './glyphdata.service';
18import { LogService } from '../../log.service';
19
20/**
21 * ONOS GUI -- SVG -- Map Service
22 *
23 * The Map Service provides a simple API for loading geographical maps into
24 * an SVG layer. For example, as a background to the Topology View.
25 *
26 * e.g. var promise = MapService.loadMapInto(svgLayer, '*continental-us');
27 *
28 * The Map Service makes use of the GeoDataService to load the required data
29 * from the server and to create the appropriate geographical projection.
30 *
31 * A promise is returned to the caller, which is resolved with the
32 * map projection once created.
33 */
34@Injectable()
35export class MapService {
36
37 constructor(
38 private gds: GlyphDataService,
39// private q: ??QService??,
40 private log: LogService
41 ) {
42 this.log.debug('MapService constructed');
43 }
44
45}