Exemple #1
0
        public static Sdk.Style.Layers.LineLayer ToNative(this LineLayer layer)
        {
            if (layer == null)
            {
                return(null);
            }

            var native = new Sdk.Style.Layers.LineLayer(layer.Id, layer.SourceId);

            native.SetProperties(
                Sdk.Style.Layers.PropertyFactory.LineWidth(new Java.Lang.Float(layer.LineWidth)),
                Sdk.Style.Layers.PropertyFactory.LineColor(layer.LineColor.ToAndroid())
                );

            return(native);
        }
Exemple #2
0
        public static Sdk.Style.Layers.LineLayer ToNative(this LineLayer layer)
        {
            if (layer == null)
            {
                return(null);
            }

            var native = new Sdk.Style.Layers.LineLayer(layer.Id.Prefix(), layer.SourceId.Prefix());

            native.SetProperties(
                Sdk.Style.Layers.PropertyFactory.LineWidth(new Java.Lang.Float(layer.LineWidth)),
                Sdk.Style.Layers.PropertyFactory.LineColor(layer.LineColor.ToAndroid())
                //Sdk.Style.Layers.PropertyFactory.LineCap(layer.LineCap.ToString().ToLower()),
                //Sdk.Style.Layers.PropertyFactory.LineOpacity(new Java.Lang.Float(layer.LineOpacity))
                );

            return(native);
        }