Skip to content

Request optimizations - #50

Merged
TobiasPressler merged 16 commits into
mainfrom
14-request-optimization
Aug 29, 2026
Merged

TobiasPressler merged 16 commits into
mainfrom
14-request-optimization

Conversation

@TobiasPressler

Copy link
Copy Markdown
Collaborator

No description provided.

improve performance by reusing cached tile counts when zooming out, reducing unnecessary requests.
added new methods for calculating tile rings and counting from cached tiles, ensuring efficient data handling
while maintaining accurate feature counts.

Signed-off-by: Tobias Pressler <pressler.tobias@gmail.com>
…les (#14)

added logic to reuse entities from previously fetched tiles when zooming in, reducing unnecessary requests. this improves performance and efficiency by leveraging cached data, ensuring smoother interactions while navigating the map.

Signed-off-by: Tobias Pressler <pressler.tobias@gmail.com>
refactor cluster rendering logic to improve performance and clarity.
added a new function to draw cluster counts as circles, enhancing
visual representation. removed redundant code for better maintainability.

Signed-off-by: Tobias Pressler <pressler.tobias@gmail.com>
introduce a new test suite for OpenLayers functionality using happy-dom
to simulate a browser environment. This ensures that map rendering and
feature handling are correctly validated, improving overall test coverage
and reliability of the mapping features.

Signed-off-by: Tobias Pressler <pressler.tobias@gmail.com>
introduce tests for Leaflet map rendering to ensure markers are displayed correctly
based on the current view. The tests validate marker caching behavior and
ensure that repeated movements do not trigger unnecessary data requests,
improving performance and user experience.

Signed-off-by: Tobias Pressler <pressler.tobias@gmail.com>
Signed-off-by: Tobias Pressler <pressler.tobias@gmail.com>
…ackage

Signed-off-by: Tobias Pressler <pressler.tobias@gmail.com>
enhance the STAM layer to properly release event listeners and stop drawing when removed from the map. this prevents memory leaks and ensures that the layer does not react to map events when it is not active. added tests to verify the teardown behavior of the layer.

Signed-off-by: Tobias Pressler <pressler.tobias@gmail.com>
Signed-off-by: Tobias Pressler <pressler.tobias@gmail.com>
Signed-off-by: Tobias Pressler <pressler.tobias@gmail.com>
updated package exports to include type definitions for leaflet and openlayers;
modified typecheck script to use tsc6 for improved compatibility.

Signed-off-by: Tobias Pressler <pressler.tobias@gmail.com>
refactor MQTT handling to support dynamic configuration through options,
allowing users to specify broker URLs, authentication, and topics.
This improves flexibility and usability for various deployment scenarios.
Additionally, updated tests to cover new MQTT functionalities.

Signed-off-by: Tobias Pressler <pressler.tobias@gmail.com>
introduce maxMarkersPerTile to control the number of entities requested per tile when no count is provided. This enhances performance by allowing users to limit the number of markers fetched, improving map loading times and reducing server load. Update related tests to ensure correct behavior with this new option.

Signed-off-by: Tobias Pressler <pressler.tobias@gmail.com>
introduce maxEntities to limit the number of entities returned in queries, preventing excessive data loading.
add LoadOptions interface to support abort signals and progress callbacks, enhancing user experience during data retrieval.
update relevant methods to utilize these new options, ensuring efficient data handling and improved performance.

Signed-off-by: Tobias Pressler <pressler.tobias@gmail.com>
revised the README to clarify that STAM is a browser library with no installation required. Updated usage examples for both Leaflet and OpenLayers to reflect the correct import statements and usage patterns. Adjusted the description of request parameters to improve clarity on default values and behavior.

Signed-off-by: Tobias Pressler <pressler.tobias@gmail.com>
refactor the STAInterface to improve request efficiency by implementing page size limits and enhancing the handling of loaded pages. This change allows for better performance during data fetching, especially when dealing with large datasets. Additionally, the LoadOptions interface has been updated to reflect these changes, ensuring that the API remains intuitive and easy to use.

Signed-off-by: Tobias Pressler <pressler.tobias@gmail.com>
@TobiasPressler
TobiasPressler force-pushed the 14-request-optimization branch from 242e778 to 3c831c6 Compare August 29, 2026 18:27
@TobiasPressler
TobiasPressler merged commit b7f62ba into main Aug 29, 2026
2 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.13.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant