﻿


var GeoMapProperties = Class.create();

GeoMapProperties.prototype =
            {
                initialize: function(htmlObjId, lat, lng, zm, gMapType, cid) {
                    this.htmlId = htmlObjId;
                    this.lat = lat;
                    this.lng = lng;
                    this.zm = zm;
                    this.gMapType = gMapType;
                    this.cid = cid;
                    this.gMap = null;
                },

                isLayerChanged: function() { return true; },

                toJson: function() { return { lat: this.lat, lng: this.lng, zm: this.zm, cid: this.cid, gMapType: this.gMapType} },

                toString: function() { return "{lat:" + this.lat + ",lng:" + this.lng + ",zm:" + this.zm + ",cid:" + this.cid + "}"; },

                parse: function(obj) {
                    this.lat = obj.lat;
                    this.lng = obj.lng;
                    this.zm = obj.zm;
                    this.cid = obj.cid;
                    this.gMapType = obj.gMapType;
                    this.gMap = null;
                }
 }

