private void RoudCreateOptimization()
        {
            NativeMap.Clear();

            if (wholeRoad != null && wholeRoad.Points.Count > 1)
            {
                wholeRoad.InvokeColor(-65535);//red
                wholeRoad.InvokeStartCap(new RoundCap());
                wholeRoad.InvokeEndCap(new RoundCap());

                NativeMap.AddPolyline(wholeRoad);
            }


            if (formsMap.EntirePathObjTmp != null && ((PolylineOptions)formsMap.EntirePathObjTmp).Points.Count > 1)
            {
                PolylineOptions polyline = (PolylineOptions)formsMap.EntirePathObjTmp;
                polyline.InvokeColor(-65535);
                polyline.InvokeStartCap(new RoundCap());
                polyline.InvokeEndCap(new RoundCap());
                NativeMap.AddPolyline(polyline);
            }
            else if (formsMap.EntirePathListTmp != null && formsMap.EntirePathListTmp.Count > 1)
            {
                var polylineOptions = CreatePolyline(formsMap.EntirePathListTmp);
                formsMap.EntirePathObjTmp = polylineOptions;
                NativeMap.AddPolyline(polylineOptions);
            }
        }
        PolylineOptions CreatePolyline(List <Plugin.Geolocator.Abstractions.Position> useList)
        {
            var polylineOptions = new PolylineOptions();

            polylineOptions.InvokeColor(-65535);//red
            polylineOptions.InvokeStartCap(new RoundCap());
            polylineOptions.InvokeEndCap(new RoundCap());

            Plugin.Geolocator.Abstractions.Position point;

            for (int i = 0; i < useList.Count; i++)
            {
                point = useList[i];
                polylineOptions.Add(new LatLng(point.Latitude, point.Longitude));
            }
            return(polylineOptions);
        }
        PolylineOptions CreatePolylineOpty(List <Plugin.Geolocator.Abstractions.Position> useList)
        {
            var polylineOptions = new PolylineOptions();

            polylineOptions.InvokeColor(-65535);//red  //polylineOptions.InvokeColor(unchecked((int)4294901760));0x66FF0000  (-65535)=ffff0000-ffffffff;
            polylineOptions.InvokeStartCap(new RoundCap());
            polylineOptions.InvokeEndCap(new RoundCap());

            Plugin.Geolocator.Abstractions.Position point;

            if (wholeRoad.Points.Count > 0)
            {
                wholeRoad.Points.RemoveAt(wholeRoad.Points.Count - 1);
            }

            for (int i = 0; i < useList.Count; i++)
            {
                point = useList[i];
                polylineOptions.Add(new LatLng(point.Latitude, point.Longitude));

                wholeRoad.Add(new LatLng(point.Latitude, point.Longitude));
            }
            return(polylineOptions);
        }