🇩🇪Germany @christianadamski

Berlin, Germany
Account created on 22 July 2010, almost 15 years ago
#

Merge Requests

More

Recent comments

🇩🇪Germany christianadamski Berlin, Germany

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.)

🇩🇪Germany christianadamski Berlin, Germany

Hidden Map/Layer Features!

🇩🇪Germany christianadamski Berlin, Germany

@todo:
- Point/Marker support
- Google Maps
- Shapes in Yandex/Baidu/?

🇩🇪Germany christianadamski Berlin, Germany

Can you upload a sample file and 1-2 screenshots? And describe what a better solution would look like?

🇩🇪Germany christianadamski Berlin, Germany

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.

🇩🇪Germany christianadamski Berlin, Germany

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.

🇩🇪Germany christianadamski Berlin, Germany

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.

🇩🇪Germany christianadamski Berlin, Germany

This now works in v4. v3 is only getting bugfixes at this point.

🇩🇪Germany christianadamski Berlin, Germany

Interaction with geometry objects now works in formatter and views in v4. v3 is not getting worked on beyond bugfixes.

🇩🇪Germany christianadamski Berlin, Germany

Don't worry, you're absolutely welcome :)

🇩🇪Germany christianadamski Berlin, Germany

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?

🇩🇪Germany christianadamski Berlin, Germany

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

🇩🇪Germany christianadamski Berlin, Germany

At some point this must have been fixed in v4. Cannot reproduce anymore.

🇩🇪Germany christianadamski Berlin, Germany

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.

🇩🇪Germany christianadamski Berlin, Germany

Eh, what now? Z-Index of what? Icon? Marker? I honestly don't know. What specifically needs the z-index?

🇩🇪Germany christianadamski Berlin, Germany

Cannot reproduce. Nobody else seems to have this issue. Will close.

🇩🇪Germany christianadamski Berlin, Germany

Nobody interested. So just remove Bing maps.

🇩🇪Germany christianadamski Berlin, Germany

Nobody else seems to run into this. Works fine here. Might be project specific.

🇩🇪Germany christianadamski Berlin, Germany

Nobody else seems to experience this. Might be project specific. Closing.

🇩🇪Germany christianadamski Berlin, Germany

Wait, you want to the map to contiously follow the user? That's a completely different use-case.

🇩🇪Germany christianadamski Berlin, Germany

I went locally from a clean v3 to v4, and the maps were correctly centered on the markers. So I cannot reproduce this locally.

🇩🇪Germany christianadamski Berlin, Germany

Hey,

I understand the issue, but chose a different approach. Client location marker will only be set once location is available.

🇩🇪Germany christianadamski Berlin, Germany

christianadamski made their first commit to this issue’s fork.

🇩🇪Germany christianadamski Berlin, Germany

I might add, jQuery is replaced in v4. v3 still depends on jQuery elements.

🇩🇪Germany christianadamski Berlin, Germany

Works fine here..

🇩🇪Germany christianadamski Berlin, Germany

I'd suggest to release this as v3 (?)

🇩🇪Germany christianadamski Berlin, Germany

Also tested locally manually. Works fine.

🇩🇪Germany christianadamski Berlin, Germany

- Merged MR fixes
- Fixed Testing issues
- Brought code to PHPStan level 6
- Drupal coder Coding Style fixes
- Disabled CSPell check

🇩🇪Germany christianadamski Berlin, Germany

christianadamski made their first commit to this issue’s fork.

🇩🇪Germany christianadamski Berlin, Germany

jQuery is already removed. Only leftovers are by core. Autocomplete widget & ajaxComplete events.

🇩🇪Germany christianadamski Berlin, Germany

I just logged out and tried to access an /admin page and was not redirected...

🇩🇪Germany christianadamski Berlin, Germany

That did not work. I don't know how to build this. I exported it as is.

🇩🇪Germany christianadamski Berlin, Germany

I don't know how to build this workflow. Just exchange to event?

🇩🇪Germany christianadamski Berlin, Germany

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.

🇩🇪Germany christianadamski Berlin, Germany

Please remove or explain the placeId usage and the sessionToken

🇩🇪Germany christianadamski Berlin, Germany

This change does a lot more though...

🇩🇪Germany christianadamski Berlin, Germany

Seems outdated? Nobody else came forward with a problem..

🇩🇪Germany christianadamski Berlin, Germany

I had to alter it a bit..

Thanks!!

🇩🇪Germany christianadamski Berlin, Germany

christianadamski made their first commit to this issue’s fork.

🇩🇪Germany christianadamski Berlin, Germany

christianadamski created an issue.

🇩🇪Germany christianadamski Berlin, Germany

There are Formatters for the address field available in v3 and v4...?

🇩🇪Germany christianadamski Berlin, Germany

I checked with tour module as well. I'm closing this. Please open a new ticket if clear reproducable issue occurs.

Thank you!

🇩🇪Germany christianadamski Berlin, Germany

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.

🇩🇪Germany christianadamski Berlin, Germany

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?

🇩🇪Germany christianadamski Berlin, Germany

Best to use the token support in combination with views.

🇩🇪Germany christianadamski Berlin, Germany

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.

🇩🇪Germany christianadamski Berlin, Germany

Ok, good to go I guess.

🇩🇪Germany christianadamski Berlin, Germany

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.

🇩🇪Germany christianadamski Berlin, Germany

For which version? 4.0.x? And then run webpack dev? Anyway, tomorrow...

Production build 0.71.5 2024