...
Code Block | ||
---|---|---|
| ||
%hash = ( 'NMIS8' => { 'Customer' => 'Opmantek', 'Location' => 'Bundall, Queensland', 'Group' => 'NMIS8' } ); |
In this example 'NMIS8' represents a map entry.
'Customer' => or 'Business' => The name of the business/customer which is the name of the map.
'Location' => The location of each of the business/customer (Geodata).
'Group' => The NMIS group which relates to that business/customer belongs to.
By editing these you could change the groups that display on different maps.
Multi-Map Configuration Example
Lets take an example, like a network with four groups, which represents a company with operations in Australia and the America's. The groups we have in NMIS are MexicoCity, NewYorkCity, Brisbane, GoldCoast. We want to end up with three maps, the "Default" map for all the locations and a regional map for each region.
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'
},
); |
Configure Map Types
To configure what map type to display, open the Maps.nmis file in /usr/local/opmantek/conf/
...
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.
Map Centres and Zoom Levels
opMaps will automatically determine the correct map centre and zoom level for your maps, but sometimes, it will calculate the wrong centre for a human, to use an alternate map centre and zoom level you can follow the following instructions.
Configure Default Centres and Zoom Levels
To configure the default centres and zoom levels, open the Maps.nmis file in /usr/local/opmantek/conf/
...
'mapCentre' => 'X, Y',
'mapZoom' => 'zoomLevel'
Replace the X,Y and zoomLevel with the value you want.
...
'mapCentre' => '10, -180',
'mapZoom' => '3',
Configure Centres and Zoom Levels for Different Maps
To configure the default centres and zoom levels, open the Maps.nmis file in /usr/local/opmantek/conf/
...
'mapCentre-Opmantek-EU' => '50, 20',