-
Notifications
You must be signed in to change notification settings - Fork 72
Share: incl marker from swisssearch result #3354
Comments
I agree it's a very common use case. There are currently no easy way to achieve that. we could use the crosshair but the page will then be centered on the address. I would propose to add two extra permalink parameters. Xsearch and Ysearch. this way we could even link a search result without an iframe. I could take care of it. |
use the swisssearch with : limit=1 parameter? |
limit: 1 will not help, was the selection of the user might not have been the first result. We already have a way to put a marker on the map via the PL: 'crosshair=xxx'. Let's use it by having it in the PL as long as the search marker is on the map. BUT: It's third priority - so let's do all the other stuff first. |
Of course, crosshair will only be correct for as long as the map is not moved. When it's moved, then it would not longer be valid. (As @loicgasser noted in his comment) |
Logically if we select Then if you share the permalink with this swissearch you've the marker: https://mf-geoadmin3.dev.bgdi.ch?api_url=gjn_trans&swisssearch=Seftigenstrasse%20264%203084%20Wabern` If the swisssearch is precise it should return only one result. |
I would not add swisssearch paramtere in the PL. simply it does not solve the issue the user has. we add location support in permalink (and alter on maybe address) in a first step with geoseo...but his is another project. so for now : let it as it is |
we could also improve crosshair functionnality using |
Backward compatibility? |
if |
OK in this case: a clear go |
duplicate of #4666 |
ALL OS
ALL Browsers
step to reproduce
open application
Add "seftigenstrasse 264" in search
select address
map with marker is shown
Share map via share function
Result:
Address is not hghlighted
Expected result
Swissearch selected result is included " Use case: I search an address and share it as a result"
The text was updated successfully, but these errors were encountered: