Reputation: 115
Im using Naxam Mapbox in my Xamarin Forms project. I need to set more LineDasharray styled for one polyline (part of polyline is full line and the rest is dotted).
All features has string property "isDottedLine" I've tried this:
LineDasharray = Expression.SwitchCase
(
Expression.Eq(Expression.ToString(Expression.Get("isDottedLine")), Expression.ToString("true")), Expression.Literal(new[] { 0.1f, 1.5f }), // dotted line
Expression.Literal(new[] { 1f, 0f })// full line
),
But it does not work. Whole polyline is visible as full line. Is any problem in my code or it is not possible to set more LineDasharray style for one polyline?
Upvotes: 1
Views: 431