Closed (fixed)
Project:
Geolocation Field
Version:
8.x-3.x-dev
Component:
Yandex Maps API
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Nov 2019 at 08:21 UTC
Updated:
4 Feb 2020 at 07:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
super_romeo commentedComment #3
super_romeo commentedMy patch is beginning and it need to make some other changes in code.
So for now I will just not put this 2 formatters together on same page.
Comment #4
christianadamski commentedSo, commit the path or not?
Comment #5
super_romeo commentedMy patch is incomplete. Need more work.
Comment #6
christianadamski commentedA side question: there is an issue with a patch attached for adding a Yandex based field widget.
That patch also alters how lat/lon are retrieved. Could you take a look at that patch?
Comment #7
super_romeo commentedSure. I can look at. What patch do you talking about?
Comment #8
christianadamski commentedhttps://www.drupal.org/project/geolocation/issues/3100794
Comment #9
super_romeo commentedFrom the very beginning.
In initialisation URL https://api-maps.yandex.ru there is parameter
coordorder. By default it's value islatlong. And it is convenient to set placemarks in usual manner (e.g.new Placemark(lat,lon);). But in this case we should pass all geometric shapes in same manner (e.g.Point(Y X)) because oflatisYandlon=X) and Yandex Maps module must convert ALL shapes (Points, Polygons, Multipolygons, ...) from "X,Y" to "Y,X" order. And I didn't found the ready-to-use converter.In for compatibility we can set
coordorder=longlatand change the order of (lat,lon) to (lon,lat) in all places. It would be much easy I guess.Patch in #8 looks good and in case of
coordorder=longlatall (lat,lon) places should be just changed to (lon, lat) order too.Comment #10
christianadamski commentedHey, what about this issue? Just wait? Still relevant? Close?
Comment #11
super_romeo commentedIf you agree with
coordorder=longlatI can make a patch.Comment #12
christianadamski commentedYeah, I can add the Parameter myself, no problem. But is it useful? Is there something broken right now? Should we write a test for that?
Comment #13
super_romeo commentedNo. This change is required for using geolocation yandex map and geofield yandex map on the same page.
I guess test is not required.
In patch we need to set this parameter and swap lat and lon in
new Placemark(lat,lon)and other places.Comment #14
christianadamski commentedOk. Well, you decide as you see fit. You can close this issue, or leave postponed until a patch. Your call :)
Comment #15
super_romeo commentedComment #17
christianadamski commentedComitted
Comment #18
super_romeo commentedOne more fix.
Comment #19
super_romeo commentedAnd one more fix.
Comment #20
super_romeo commentedComment #21
christianadamski commentedComment #23
christianadamski commentedThanks!