Is there a way to draw lines or more accurately a path between various markers on MapView like if someone want to show the different stays between his/her journey and the overall route??
thanks in Advance
Jump to content
I would check your findings for sure. I agree it is not the most beautiful way to use the maps in Corona but, at least, would be better than nothing
Ok, here is a dropbox link. What you do is click draw on a map, then just click a few spots, say 3 or 4 (I think there is a limit), then save.
After that, click on show saved area. Then when the map shows again, just click once anywhere on the map and it will draw the saved lines that were send back from the corona code. Best of luck.
Corona's Map object (native.newMap) is a native object. It sits on top of the OpenGL canvas that the rest of your app is built upon. All Corona drawing APIs like display.newLine() are part of the OpenGL canvas. You therefore cannot draw on top of anything created with an API call that starts with native.*.
The answer will be to have an updated mapView or a thirdparty plugin that does the same thing described above but in the native map environment. At the very least on Android which uses the same Google maps this should be very possible if you have access to native calls. I have no clue if Apple Maps support this yet. I sincerely hope that the mapView does get some love from Corona Labs sooner than later. One can only wish! :-)
Corona SDK does not support drawing on our native.newMapView() API. At this time we do not plan on providing this. Our map feature is designed for adding simple map features for your app. If maps are the main feature or a major feature of your app, perhaps you should consider either using Corona Enterprise or CoronaCards where you have native access and can call your operating system's map features.
Community Forum Software by IP.Board