Hi Am trying to Draw a polyline Overlay on OSM map using osm bonuspack,but am getting Type COnversion Error here
Polyline roadOverlay = RoadManager.BuildRoadOverlay(road, context);
Error: Cannot implicitly covert type OSMDROID.Bonuspack.overlays.polyline to osdroid.api.Polyline.
Please suggest whats wrong here.
osdroid.api.Polyline is only used for the Google Maps api wrapper. Just change the cast to org.osmdroid.views.overlay.Ployline
Just import the correct Polyline in your file:
import org.osmdroid.views.overlay.Polyline;
(instead of osdroid.api.Polyline)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.