Load POIs as the map moves
This sample shows how to load points of interest data on the map as the user moves the map. Based on the classification code (category), a different color is used to render the point of interest. The search service returns up to 100 results, but more can be retrieved by paging through the results offset parameter. Some optimizations are made to only retrieve more points of interest when the user has moved the map enough to warrent more data. Additionally, this sample also hides the results and doesn't query new data when zoomed out.