273
Views
4
Comments
Solved
[OutSystems Maps] Additional Marker options
outsystems-maps
Reactive icon
Forge asset by OutSystems
Application Type
Reactive

Previously the markers had a JSON structure that allowed us to set optional markers settings via Advanced Format (in fact it is still available under the Marker Structure 

But the Marker Block defines a specific set of optional configs.

Would be nice to have a text entry for any additional parameters in a JSON format that are not described in the Optional Configs.

Properties like label text color and label text size, animation for example are missing. 

https://developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions-Properties


Note: This was implemented as an idea, but was told to post it here as well. 

2022-11-12 11-28-30
Gonçalo Martins
Staff
Solution

Hello @Gonzalo Labarca 

You can use the Optional Configuration present at the Marker component's level for the icon:



At the popup level, you can use the MarkerPopup inside the Image placeholder:

Best Regards,
GM

2022-11-12 11-28-30
Gonçalo Martins
Staff

Hello @Gonzalo Labarca 

Were you able to take a look at my message in order to check if it was what you needed to know?

Cheers,
GM

2020-08-05 08-52-58
Ruben Goncalves

Hi @André Pinho,

Thank you for your suggestion and for the creation of the idea.

The team, by design and to improve the dev experience, has been avoiding to add text inputs with JSON (aka black holes of configuration). And instead, adding input parameters or creating APIs/client-side actions in order to help to achieve the goal.

This being said, the ones that you need are:

  • Label text color
  • Label text size
  • Animation

Correct?

Also, you might be able to achieve your goals, via high-code APIs:

MapAPI.MarkerManager.GetMarkerById(#MARKER-ID).provider.(api of the provider to change the label)

Hope that this unblocks you for now.

But keep the feedback!

Cheers,
RG

UserImage.jpg
Gonzalo Labarca

Hi There,


Is there a way to use a picture I have for the location as the image in the marker Popup layout?

Thanks,


Gonzalo

2022-11-12 11-28-30
Gonçalo Martins
Staff
Solution

Hello @Gonzalo Labarca 

You can use the Optional Configuration present at the Marker component's level for the icon:



At the popup level, you can use the MarkerPopup inside the Image placeholder:

Best Regards,
GM

2022-11-12 11-28-30
Gonçalo Martins
Staff

Hello @Gonzalo Labarca 

Were you able to take a look at my message in order to check if it was what you needed to know?

Cheers,
GM

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.