Esempio n. 1
0
        public override JsonCollection BuildParams()
        {
            JsonCollection options = base.BuildParams();

            options.AddIfValue("geodesic", this.Geodesic, typeof(bool));

            if (Paths != null)
            {
                options.Add("path", PathArrayName, this.Paths != null);
            }

            options.Add("map", MapId, !string.IsNullOrEmpty(MapId));

            return(options);
        }
Esempio n. 2
0
        public override JsonCollection BuildParams()
        {
            JsonCollection options = new JsonCollection(false);

            if (Map != null)
            {
                options.Add("map", this.Map.Id, !string.IsNullOrEmpty(this.Map.Id));
            }

            options.AddIfValue("clickable", this.Clickable, typeof(bool));
            options.AddIfValue("editable", this.Editable, typeof(bool));
            options.Add("strokeColor", this.StrokeColor, !string.IsNullOrEmpty(StrokeColor), typeof(string));
            options.AddIfValue("strokeOpacity", this.StrokeOpacity, typeof(double));
            options.AddIfValue("strokeWeight", this.StrokeWeight, typeof(int));
            options.AddIfValue("visible", this.Visible, typeof(bool));
            options.AddIfValue("zIndex", this.ZIndex, typeof(int));

            return(options);
        }