Skip to content

Conversation

@kehach07
Copy link
Contributor

Issue 34:- Handle events without coordinates to avoid placing them at the map center. #34

Events with missing or null coordinates were appearing at (0,0) on the map, creating incorrect markers in the ocean.

Solution:-
Filtered out events that have no valid latitude/longitude before rendering.
Added a backup check inside pointToLayer to skip any invalid feature.

✔ Result
Only events with real coordinates are displayed on the map, and invalid events are ignored, preventing wrong markers and wrong cluster behaviour.

… the map center. django#34

Events with missing or null coordinates were appearing at (0,0) on the map, creating incorrect markers in the ocean.

Solution:-
Filtered out events that have no valid latitude/longitude before rendering.
Added a backup check inside pointToLayer to skip any invalid feature.

✔ Result
Only events with real coordinates are displayed on the map, and invalid events are ignored, preventing wrong markers and wrong cluster behaviour.
@benjaoming
Copy link
Contributor

Hey - thanks for showing interest.

Are you using AI for this or just very verbose? :)

I think this solution would have been nicer to implement in Hugo.

I would think this repo is fairly calm right now, and events without coordinates don't really seem to be an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants