...
Code Block | ||
---|---|---|
| ||
%hash = ( 'Opmantek-Global1' => { 'Customer' => 'Opmantek-Global', 'Location' => 'Bundall, Queensland', 'Group' => 'GoldCoast' }, 'Opmantek-Global2' => { 'Customer' => 'Opmantek-Global', 'Location' => 'Brisbane, Queensland', 'Group' => 'Brisbane' }, 'Opmantek-Global3' => { 'Customer' => 'Opmantek-Global', 'Location' => 'Mexico City, Mexico', 'Group' => 'MexicoCity' }, 'Opmantek-Global4' => { 'Customer' => 'Opmantek-Global', 'Location' => 'New York City, New York', 'Group' => 'NewYorkCity' }, 'Opmantek-AU1' => { 'Customer' => 'Opmantek-AU', 'Location' => 'Bundall, Queensland', 'Group' => 'GoldCoast' }, 'Opmantek-AU2' => { 'Customer' => 'Opmantek-AU', 'Location' => 'Brisbane, Queensland', 'Group' => 'Brisbane' }, 'Opmantek-NA1' => { 'Customer' => 'Opmantek-NA', 'Location' => 'Mexico City, Mexico', 'Group' => 'MexicoCity' }, 'Opmantek-NA2' => { 'Customer' => 'Opmantek-NA', 'Location' => 'New York City, New York', 'Group' => 'NewYorkCity' }, ); |
Then you need to tell opMaps which map is the default map to load when it starts, by default the default map name is "Default", but you can change this by editing Maps.nmis
Code Block | ||
---|---|---|
| ||
vi /usr/local/opmantek/conf/Maps.nmis |
Find the following line under 'mapview' =>
'defaultMap' => 'Default'
Replace the defaultMap with the map you want loaded, in our case "Opmantek-Global:.
eg: 'defaultMap' => 'Opmantek-Global'
Configure Map Types
To configure what map type to displayBy default opMaps will display a "TERRAIN" style map, to use an alternate map style, open the Maps.nmis file in /usr/local/opmantek/conf/
...
The Follow map types can be used
google.maps.MapTypeId.ROADMAP
displays the default road map viewgoogle.maps.MapTypeId.SATELLITE
displays Google Earth satellite imagesgoogle.maps.MapTypeId.HYBRID
displays a mixture of normal and satellite viewsgoogle.maps.MapTypeId.TERRAIN
displays a physical map based on terrain information.
...
'mapCentre-Opmantek-EU' => '50, 20',
...