Skip to main content
Question

Changing the map type using the API


Forum|alt.badge.img+1

Hi, I am trying to make a program that as soon as I upload an activity, changes the title, the description, and most importantly the map type from the regular orange line, to the "support Ukraine" map type.

I have been playing around with the API, using the get request to see an activity, but there is no entry for the map type. Is this even possible? 

Best,

J

lopey66
Forum|alt.badge.img+14
  • Hub Explorer
  • August 2, 2023

ActivityFix
Superuser
Forum|alt.badge.img+24

It is not officially documented so support isn't guaranteed, but the field name you need is "selected_polyline_style" and the value is a string representing the map type. The support Ukraine map style is named "ukraine"


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept, you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings