Skip to main content
Question

Changing the map type using the API

  • July 29, 2023
  • 2 replies
  • 32 views

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

2 replies

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

ActivityFix
Superuser
Forum|alt.badge.img+24
  • Superuser
  • August 3, 2023

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"