forked from liodali/osm_flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat : add method to draw multiRoad and clearAllRoads Android Side (l…
…iodali#224) * create method drawMultiRoad simultaneously * create method clearAllRoad * create RoadConfig data class in android side * move some fine to models package in android project
- Loading branch information
Showing
12 changed files
with
219 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../hamza/dali/flutter_osm_plugin/Adresse.kt → ...dali/flutter_osm_plugin/models/Adresse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...i/flutter_osm_plugin/FlutterInfoWindow.kt → ...er_osm_plugin/models/FlutterInfoWindow.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...za/dali/flutter_osm_plugin/FlutterRoad.kt → .../flutter_osm_plugin/models/FlutterRoad.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...i/flutter_osm_plugin/FlutterRoadMarker.kt → ...er_osm_plugin/models/FlutterRoadMarker.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
android/src/main/kotlin/hamza/dali/flutter_osm_plugin/models/RoadConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package hamza.dali.flutter_osm_plugin.models | ||
|
||
import org.osmdroid.bonuspack.routing.OSRMRoadManager | ||
import org.osmdroid.util.GeoPoint | ||
|
||
data class RoadConfig( | ||
val wayPoints:List<GeoPoint>, | ||
val interestPoints : List<GeoPoint>, | ||
val meanUrl :String = OSRMRoadManager.MEAN_BY_CAR, | ||
val colorRoad :Int? = null, | ||
val roadWidth :Float = 5f, | ||
) |
3 changes: 1 addition & 2 deletions
3
android/src/main/kotlin/hamza/dali/flutter_osm_plugin/network/ApiClient.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...amza/dali/flutter_osm_plugin/Constants.kt → ...flutter_osm_plugin/utilities/Constants.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package hamza.dali.flutter_osm_plugin | ||
package hamza.dali.flutter_osm_plugin.utilities | ||
|
||
import android.view.View | ||
|
||
|
Oops, something went wrong.