mapillary / mapillary-js

Interactive, extendable street imagery map experiences in the browser, powered by WebGL
https://mapillary.github.io/mapillary-js
MIT License
446 stars 85 forks source link

photo 360 filter by username #606

Closed yann-insa closed 9 months ago

yann-insa commented 10 months ago

Hello, This libraory seems to be very fantastic. I am reaching out to inquire about a specific feature of the Mapillary API. My goal is to display images from Mapillary in my application, but I wish to filter these images so that only those uploaded by a specific user (based on their username) are shown.

I have explored your API documentation but would like to confirm if this functionality is supported. Specifically, I am interested in understanding whether the API allows filtering images by the 'creator_username' parameter and how this can be implemented effectively.

Thanks in advance

Sincerly

oscarlorentzon commented 9 months ago

Thanks for the interest in using MapillaryJS.

If you intend to use MapillaryJS in you application you can filter for example filter on creatorUsername or creatorId.

The Viewer.setFilter documentation explains how to set the filter of choice after creating the viewer.

You can try it directly in the browser in the filtering live example.

You can also check the Core Functionality - Filtering example and its source code.

yann-insa commented 9 months ago

thank a lot, i will be explore your tips