Map.specifics = {
    controls: [ 'perma', 'search' ],
    vectorControls: [ 'selectFeature' ],
    mapOptions: {
        feedCount: 1,
        zoomToFeatures: false // overridden by initialise()
    },
    markers: true,

    layerOptions: {
        'Vectors': {
            type: 'GMD',
            calcKm: true,
            featureAdded: function(e) {
                if (e.feature.attributes.description == 'undefined')
                    delete e.feature.attributes.description;
            },
            strategyTypes: ['Fixed'],
            includeInInitialZoom: true
        }
    },

    selectFeature: {
        selectFunction: 'feature',
        dialog: 'feature'
    },

    setupVectorOptions: function() {
        if (!ServerVars['zoom'])
            this.mapOptions.zoomToFeatures = true;

        if (ServerVars['gstyle'] == 'n') {
            this.layerOptions['Vectors'].defaultStyle = 'route';
            this.layerOptions['Vectors'].rulesArray = ['iconType', 'questionIcon'];
        }
    }
}
