blob: 9f8faf83e6a23e1e43319c9592490fbd522eba70 [file] [log] [blame]
Sean Condonf4f54a12018-10-10 23:25:46 +01001<!--
2~ Copyright 2018-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-->
Sean Condon71910542019-02-16 18:16:42 +000016<!-- The transform here goes from a 0,0 centred grid of -180 to 180 of
17 longitude to -75 to 75 of latitude
18 It is mapped to a 2000x1000 SVG grid with -500,0 at the top left
19 (The SVG viewbox of ONOS is 1000x1000 - for the geo grid we wanted
20 to keep it the same height 1000 representing +75 latitude down to
21 -75 latitude, but double the width. Why 75? There's no city in the
22 world above 70 - Murmansk)
23 The 6.66 represents 1000/150 and the 5.55 represents 2000/360
24 The reason for the difference is that mercator projection widens
25 countries in the northern and southern extremities, and so
26 the map is squashed horizontally slightly here to compensate
27 (with no squashing the width would be 2400)-->
Sean Condon1ae15802019-03-02 09:07:18 +000028<svg:g xmlns:svg="http://www.w3.org/2000/svg" onos-mapsvg [map]="map" (mapBounds)="updatedBounds($event)"
Sean Condon71910542019-02-16 18:16:42 +000029 transform="translate(500,500), scale(5.5555,6.666666)"/>