﻿

function MapLayer(id, iName)
{
    this.Naic = id;
    this.Name = iName;
    this.results = null;
    this.objects = null;

    //constructor always has valid state
    return true;
}

MapLayer.prototype.setResult = function(value) {
    this.results = value;
}

MapLayer.prototype.getResult = function() {
    return this.results;
}

MapLayer.prototype.setObjects = function(value) {
    this.objects = value;
}

MapLayer.prototype.getObjects = function() {
    return this.objects;
}

MapLayer.prototype.getPinClass = function() {
    return "P" + this.Naic;
}

MapLayer.prototype.getHeaderClass = function() {
    return "H" + this.Naic;
}

MapLayer.prototype.getBackgroundColor = function() {
    return "B" + this.Naic;
}