Page 1 of 2
[closed] Open with —> Share suggestion
Posted: Thu Mar 09, 2017 2:39 pm
by alexlong
Hi and thanks again for AlpineQuest.
Now I (we) have a choice to share location on Google maps just like
Code: Select all
[b]Open with[/b] —> [b]Share[/b] —> The location is [GPS 00.0000000 N 00.0000000 E]. http://google.com/maps/place/00.0000000,00.0000000
Is it possible to add some other map provider, let's say Yandex or else? In case it is impossible to add it right to AQ could I have it in
user_settings.config file to change map provider?
Re: Open with —> Share suggestion
Posted: Fri Mar 10, 2017 9:52 am
by Psyberia-Support
Hi Alex,
Yes it makes sense, I'll try to add an user setting for that...
Best regards
Re: Open with —> Share suggestion
Posted: Fri Mar 17, 2017 1:05 pm
by Psyberia-Support
I've added an user setting for this, this will be available in the next beta.
Best regards
Re: Open with —> Share suggestion
Posted: Mon Mar 27, 2017 2:21 pm
by alexlong
Re: Open with —> Share suggestion
Posted: Tue Mar 28, 2017 4:11 pm
by Psyberia-Support
Hi Alex,
I'll update the page once the official version is published.
The setting name is "map.coordinates.share_provider=".
The default value is:
Code: Select all
map.coordinates.share_provider=https://google.com/maps/place/{$latitude},{$longitude}
For Yandex, it should work with:
Code: Select all
map.coordinates.share_provider=https://yandex.com/maps/?ll={$longitude},{$latitude}
but I haven't tested yet...
Re: Open with —> Share suggestion
Posted: Tue Mar 28, 2017 7:51 pm
by alexlong
Ok, I will test it by myself right now, it sounds interesting
Re: Open with —> Share suggestion
Posted: Tue Mar 28, 2017 8:22 pm
by alexlong
I tested it
For example I shared as
Место [GPS 59.9480003 N 30.3417603 E]
https://yandex.com/maps/?ll=30.3417603,59.9480003
If I open
https://yandex.com/maps/?ll=30.3417603,59.9480003 nothing happens. I just see the Yandex map. But when I copy coordinates 59.9480003,30.3417603 and insert it in the search field of
https://yandex.com/maps/ I can see the map with the marker on this place.
I would like to see a marker on the Yandex map when I open
https://yandex.com/maps/?ll=30.3417603,59.9480003 the same way it happenes when I share the the place via Google.
Место [GPS 59.9480103 N 30.3417701 E]
http://google.com/maps/place/59.9480103,30.3417701
Re: Open with —> Share suggestion
Posted: Wed Mar 29, 2017 7:54 am
by Psyberia-Support
Hi again,
The link above will only move the Yandex map over the shared location.
It seems you can add a marker in Yandex maps
using this link.
So maybe this would work:
Code: Select all
https://yandex.com/maps/2/saint-petersburg/?ll={$longitude}%2C{$latitude}&z=10&mode=whatshere&whatshere%5Bpoint%5D={$longitude}%2C{$latitude}&whatshere%5Bzoom%5D=10
But it's much more complicated than the Google Maps link...
Re: Open with —> Share suggestion
Posted: Wed Mar 29, 2017 8:14 am
by alexlong
Excellent!!!
This one works!!
Code: Select all
map.coordinates.share_provider=https://yandex.com/maps/?ll={$longitude}%2C{$latitude}&z=10&mode=whatshere&whatshere%5Bpoint%5D={$longitude}%2C{$latitude}&whatshere%5Bzoom%5D=10
But test it again (test parameters), you know better. I am not cool as you are.
I just combined your link with the previous "map.coordinates.share_provider=
https://google.com/maps/place/{$latitude},{$longitude}" and inserted the code into user_config and shared. Yandex in the browser and yandex application
Yandex.Maps now show markers at the place.
Re: Open with —> Share suggestion
Posted: Wed Mar 29, 2017 9:01 am
by alexlong
Hi, François.
I think you'd better substitute Yandex.com for Yandex.ru beacuse we use
ru domain. Or make both
com and
ru
For myself I changed for
Code: Select all
map.coordinates.share_provider=https://yandex.ru/maps/?ll={$longitude}%2C{$latitude}&z=10&mode=whatshere&whatshere%5Bpoint%5D={$longitude}%2C{$latitude}&whatshere%5Bzoom%5D=10
Please check necessary zoom values etc.
Thanks
It really works:
Code: Select all
Место [GPS 59.9390461 N 30.3158288 E] https://yandex.ru/maps/?ll=30.3158288%2C59.9390461&z=10&mode=whatshere&whatshere%5Bpoint%5D=30.3158288%2C59.9390461&whatshere%5Bzoom%5D=10
Here —>
Palace Square with Alexander's Column
N.B.
Please have a look at the following.
This is one of the "share" links with marker
Code: Select all
Место [GPS 59.9310263 N 30.3611002 E] https://yandex.ru/maps/?ll=30.3611002%2C59.9310263&z=10&mode=whatshere&whatshere%5Bpoint%5D=30.3611002%2C59.9310263&whatshere%5Bzoom%5D=10
You can see the red line around? What is it for?
Marker
Re: Open with —> Share suggestion
Posted: Wed Mar 29, 2017 9:15 am
by alexlong
I think 15 zoom would be OK
Palace Square Zoom15
Code: Select all
map.coordinates.share_provider=https://yandex.ru/maps/?ll={$longitude}%2C{$latitude}&z=15&mode=whatshere&whatshere%5Bpoint%5D={$longitude}%2C{$latitude}&whatshere%5Bzoom%5D=10
Re: Open with —> Share suggestion
Posted: Fri Mar 31, 2017 1:45 pm
by Psyberia-Support
Hi again,
It seems that Yandex will display the surrounding city or neighborhood with this red line when displaying a marker...
I haven't found much information in English how to use markers with Yandex, maybe you'll more luck in Russian...
Anyway you're now free to use anything you want with the user setting...
Re: Open with —> Share suggestion
Posted: Fri Mar 31, 2017 2:33 pm
by alexlong
I will try
Re: Open with —> Share suggestion
Posted: Fri Mar 31, 2017 2:52 pm
by alexlong
Hi again.
Let's try my code above
Code: Select all
map.coordinates.share_provider=https://yandex.ru/maps/?ll={$longitude}%2C{$latitude}&z=15&mode=whatshere&whatshere%5Bpoint%5D={$longitude}%2C{$latitude}&whatshere%5Bzoom%5D=10
Try another zoom values . Do not care wirh this red line it's not too bad. We need to get marker it's important for example to make a route
4pda my discussion
Re: Open with —> Share suggestion
Posted: Fri Mar 31, 2017 3:19 pm
by alexlong
Hi, François!
I noticed that if I apply Open with: Other application and choose Yandex (either Yandex Maps application or any browser installed) I see a marker
In case I apply Open with: Yandex Maps there is no marker. Please change it as it works above in Open with: Other application etc. I think the maker will appear