umap icon indicating copy to clipboard operation
umap copied to clipboard

Direct link to a POI

Open Cyril5C opened this issue 1 year ago • 9 comments

Hello, I'd like to have what's called a "share" link for POIs. When this link is clicked, the map loads with the POI panel open. Thanks a lot! NB: perhaps this is already possible via a geek trick ;) Cyril.

Cyril5C avatar Jun 13 '24 09:06 Cyril5C

It's already possible, but will be refactor soon.

For now, you have to set an identifier key (a name of a column):

image

Then right-click on a feature:

image

yohanboniface avatar Jun 17 '24 08:06 yohanboniface

Ok great! It works well except when you have defined a "panel on load". But i guess it's not a priority bug as you are in the middle of a refacto. Thanks.

Cyril5C avatar Jun 17 '24 15:06 Cyril5C

arf and it doesn't work on mobile... for exemple : https://umap.openstreetmap.fr/fr/map/cafe-comptoir_1014832?feature=rectC21sHWLMEeBaa (works on my mac but not on my iPhone)

Cyril5C avatar Jun 17 '24 15:06 Cyril5C

Ok great! It works well except when you have defined a "panel on load"

We could give priority to the feature in that case, I think it makes sense.

arf and it doesn't work on mobile

Can you be more explicit ?

yohanboniface avatar Jun 21 '24 11:06 yohanboniface

when i open the link on mobile the panel does not open

Cyril5C avatar Jun 21 '24 11:06 Cyril5C

BTW, just having a look at your map, have you tried setting a filter key like this ?

image

yohanboniface avatar Jun 21 '24 11:06 yohanboniface

ooh ! mais non c'est génial !

Cyril5C avatar Jun 21 '24 12:06 Cyril5C

Avec un filtre sur le prix aussi:

image

yohanboniface avatar Jun 21 '24 17:06 yohanboniface

Merci pour le petit coup de pouce sur les filtres, par contre les filtre "number" ne marchent par avec des chiffres avec des virgules, j'ai contourné en dupliquant le champ et en remplacant la virgule par un point. Mais pour les français ca serait bien d'accepter les points et les virgule. C'est top de voir uMap progresser de jour en jour !

Cyril5C avatar Jun 24 '24 11:06 Cyril5C

Numbers formatting depends on the locale (eg. in the US a , is a thousand separator: 10,323,234).

We can display a number according to user locale, but there is not helper in the browser for parsing according to locale, plus we don't know the locale used when the number was typed.

So at this stage the only solution I see is to use "machine ready" numbers in the data, and:

  • use a localized version for displaying it, so it's more user friendly
  • when (if) we add typing of columns, allow to define an input format, so users can also type the number in their locale

yohanboniface avatar Jul 10 '24 10:07 yohanboniface

(Closing the original issue as it's fixed, and the number related discussion is about typing, which is another story)

yohanboniface avatar Jul 10 '24 10:07 yohanboniface