https://www.drupal.org/project/geolocation/issues/3522323 ✨ Remove dependency on jQuery Active
(This issue is less than a month old. Please search before posting issues, its easier for everyone.)
Hidden Map/Layer Features!
@todo:
- Point/Marker support
- Google Maps
- Shapes in Yandex/Baidu/?
Can you upload a sample file and 1-2 screenshots? And describe what a better solution would look like?
Regarding SearchAPI, there is a gap I think. There is SearchAPI support for Geolocation field and geometry, but GPX is its own entity type. So it would probably need separate SearchAPI integration.
Hey,
it's just me. In my spare time. Just to manage expectations.
For each error, please open an issue with the error description and maybe screenshots.
As for GPX, its conceptually hard. A GPX file can contain any amount of trails with any amount or tracks waypoints etc. So they are stored in a separate entity type. The GPX file field just keeps a reference to the uploaded data.
If you have more specific questions, please ask.
The solution is this:
scripts/at.responsiveLists.js
line first & last
(function ($, Drupal, window) {
})(jQuery, Drupal, window);
to
(function ($, Drupal, window, once) {
})(jQuery, Drupal, window, once);
line 46
list.once().each(init);
to
$(once('at-responsive-list', list)).each(init);
I can't provide patch or MR as the package.json toolchain doesn't work anymore and I can't minimize the JS with that.
christianadamski → created an issue.
This now works in v4. v3 is only getting bugfixes at this point.
Interaction with geometry objects now works in formatter and views in v4. v3 is not getting worked on beyond bugfixes.
christianadamski → created an issue.
Don't worry, you're absolutely welcome :)
Shouldn't the latter happen anyway?
I mean, if you ignore geolocation and just imagine a regular list view; shouldn't the filter only show relevant entries?
christianadamski → changed the visibility of the branch 3325926-marker-click-pop to hidden.
christianadamski → changed the visibility of the branch 3325926-marker-click-pop to active.
christianadamski → changed the visibility of the branch 3325926-marker-click-pop to hidden.
christianadamski → made their first commit to this issue’s fork.
I think the underlying issue is, that geolocation currently doesn't tell you, that points are not treated as shapes, but as locations/markers.
Closing in favor of 📌 Unify fit locations & fit shapes Active
christianadamski → created an issue.
christianadamski → created an issue.
At some point this must have been fixed in v4. Cannot reproduce anymore.
Of course heavily outdated by now, but just for the record:
In geolocation v4 putting
<button href="#" onclick="alert('Welt');">Hallo</button>
into a node and displaying that in the popup on a marker works perferctly fine.
christianadamski → created an issue.
Eh, what now? Z-Index of what? Icon? Marker? I honestly don't know. What specifically needs the z-index?
christianadamski → made their first commit to this issue’s fork.
Cannot reproduce. Nobody else seems to have this issue. Will close.
Nobody interested. So just remove Bing maps.
Nobody else seems to run into this. Works fine here. Might be project specific.
Could not reproduce..
Nobody else seems to experience this. Might be project specific. Closing.
Handled in MR 100, and already fixed there. Merge soon.
https://git.drupalcode.org/project/geolocation/-/merge_requests/100
Already handled in MR 100. Will be merged soon
https://git.drupalcode.org/project/geolocation/-/merge_requests/100
New Center option added
Wait, you want to the map to contiously follow the user? That's a completely different use-case.
I went locally from a clean v3 to v4, and the maps were correctly centered on the markers. So I cannot reproduce this locally.
Hey,
I understand the issue, but chose a different approach. Client location marker will only be set once location is available.
christianadamski → made their first commit to this issue’s fork.
christianadamski → made their first commit to this issue’s fork.
Merged!
Merged!
Thanks for finding!
christianadamski → made their first commit to this issue’s fork.
I might add, jQuery is replaced in v4. v3 still depends on jQuery elements.
Works fine here..
I'd suggest to release this as v3 (?)
Also tested locally manually. Works fine.
- Merged MR fixes
- Fixed Testing issues
- Brought code to PHPStan level 6
- Drupal coder Coding Style fixes
- Disabled CSPell check
christianadamski → made their first commit to this issue’s fork.
jQuery is already removed. Only leftovers are by core. Autocomplete widget & ajaxComplete events.
christianadamski → created an issue.
christianadamski → created an issue.
I just logged out and tried to access an /admin page and was not redirected...
That did not work. I don't know how to build this. I exported it as is.
I don't know how to build this workflow. Just exchange to event?
christianadamski → created an issue.
Well, can you look up, if Tianditu is officially available worldwide now? I remember a year ago, I could not access there website, now I can...
If it really and officially and permanently is available everywhere, we could merge it back to geolocation.
I may have the same problem as with Baidu though: I cannot get map keys. For Baidu you need a chinese commercial something number. I don't have that obviously.
christianadamski → created an issue.
Please remove or explain the placeId usage and the sessionToken
This change does a lot more though...
Seems outdated? Nobody else came forward with a problem..
I had to alter it a bit..
Thanks!!
christianadamski → made their first commit to this issue’s fork.
christianadamski → created an issue.
There are Formatters for the address field available in v3 and v4...?
christianadamski → created an issue.
christianadamski → created an issue.
I checked with tour module as well. I'm closing this. Please open a new ticket if clear reproducable issue occurs.
Thank you!
This was a lot worse than expected. The order of dependent libraries was not as Leaflet expects them for extensions.
1.) Leaflet library
2.) Extension library
3.) Instantiate Map
4.) Interact with extension properties
The MR here now adheres to that order. There is unconnected test failures with Google, afterwards this will merge.
Thanks!
Hu, this might simply be wrong? Or maybe it changed?
I cannot find any gestureHandling options in the leaflet docs right now. Maybe this was wrongly copied from Google Maps?
I think this needs to be removed completly?
Best to use the token support in combination with views.
4 Options:
1.) Use a custom module to override icon path.
2.) The icon path supports tokens. Use current user token object and go from there.
3.) Use CSS to alter the icon if the user class is i.e. added to body.
4.) Use ECA module.
This is already both in 3.x and 4.x... (?)
Ok, good to go I guess.
I tested locally with 3.0-rc15 and transferred the changes manually. So didn't technically test 4.x, but the code is identical, so should be the same.
For which version? 4.0.x? And then run webpack dev? Anyway, tomorrow...