尝试运行Nightmare.js应用程序时出现PhpStorm错误
val lineString = LineString.fromLngLats(tempCoordinateList)
val geoJsonSource = GeoJsonSource(DASHED_LINE_SOURCE_ID, Feature.fromGeometry(lineString))
mapboxMap?.addSource(geoJsonSource)
val lineLayer = LineLayer(DASHED_LINE_LAYER_ID, DASHED_LINE_SOURCE_ID).apply {
setProperties(
PropertyFactory.lineDasharray(arrayOf(2f, 1f)),
PropertyFactory.lineCap(Property.LINE_CAP_SQUARE),
PropertyFactory.lineJoin(Property.LINE_JOIN_ROUND),
PropertyFactory.lineWidth(3f),
PropertyFactory.lineColor(Color.parseColor("#e55e5e")))
}
mapboxMap?.addLayer(lineLayer)