Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Any news on MapView API for drawing routes/polygon
Started by claes.lindblom Jun 07 2016 12:30 PM

1 reply to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

claes.lindblom

[GLOBAL: userInfoPane.html]
claes.lindblom
  • Observer

  • 27 posts
  • Corona SDK

Hi,

Is there any news or plans on implementing routes / polygon on MapView?
I have been wanting this for some time now but I have not seen anything yet.

 

Android API is simple and I cannot be a big effort on adding this to Corona. Or is iOS very complex?

map.addPolyline(new PolylineOptions().geodesic(true)
.add(new LatLng(-33.866, 151.195)) // Sydney
.add(new LatLng(-18.142, 178.431)) // Fiji
.add(new LatLng(21.291, -157.821)) // Hawaii
.add(new LatLng(37.423, -122.091)) // Mountain View 

and this for changing width and color of the polygon.

Polyline line = map.addPolyline(new PolylineOptions()
.add(new LatLng(-37.81319, 144.96298), new LatLng(-31.95285, 115.85734))
.width(25)
.color(Color.BLUE)
.geodesic(true));

Best regards

/Claes

 



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,075 posts
  • Enterprise

At this point, we are collecting feature requests at Maps features need more votes.

 

Rob




[topic_controls]
[/topic_controls]