var Location = Class.create({
  initialize: function(lat, lng, id, name, icon, layer) {
      this.lat = lat;
      this.lng = lng;
      this.id = id;
      this.name = name;
      this.icon = icon;
      this.layer = layer;
      this.topoId = null;
      this.topoType = null;
      this.topoPlaceType = null;
  },

  getLayer: function() {
   return this.layer;
  },

  setName: function( name) {
      this.name = name;
  },

  setTopology: function( id, type) {
      this.topoId = id;
      this.topoType = type;
  },

  setTopoPlaceType: function( placeType) {
      this.topoPlaceType = placeType;
  },

  hasTopology: function() {
      return this.topoId!=null && this.topoType!=null;
  },

  getLat: function() {
      return this.lat;
  },

  getLng: function() {
      return this.lng;
  },

  getId: function() {
      return this.id;
  },

  getIcon: function() {
    return this.icon;
  },

  getName: function() {
      return this.name;
  },

  getTopoId: function() {
      return this.topoId;
  },

  getTopoType: function() {
      return this.topoType;
  },

  getTopoPlaceType: function() {
      return this.topoPlaceType;
  }
});