How does the upperleft/lowerright properties get set from ItemsRequestEventArgs that is passed to the ItemsRequest() method of the IMapDynamicSource?
I am seeing some behavior that I am not expecting. I am using the dynamic map layer to reduce the amount of items displayed on the map by zoom level and region. I have a zoom grid set with a minzoom of 10, and would like to set both the latitudescount and longitudescount to 50 or higher, however when I set it that high the upperleft property (which i use to get a reference to what the user is currently viewing on the map) gets set to a value that prevents the appropriate value from appearing on the map.
For example, when debugging I will zoom into zoom level 10 and center at lat/long (45.00, -94.00), the upperleft property gets set to (44.92, 93.60), which is very close to the center screen and since I use that location to filter my data, it cuts off all the data that would normally appear in the upperleft part of the viewable map.
If I scroll the map up and to the left for a ways, it will load the data I want, then I can scroll back to the original position and see it.
Am I not using this property correctly? Or is there a better way to get a reference to the part of the map that is currently being viewed?
Thanks
I am seeing some behavior that I am not expecting. I am using the dynamic map layer to reduce the amount of items displayed on the map by zoom level and region. I have a zoom grid set with a minzoom of 10, and would like to set both the latitudescount and longitudescount to 50 or higher, however when I set it that high the upperleft property (which i use to get a reference to what the user is currently viewing on the map) gets set to a value that prevents the appropriate value from appearing on the map.
For example, when debugging I will zoom into zoom level 10 and center at lat/long (45.00, -94.00), the upperleft property gets set to (44.92, 93.60), which is very close to the center screen and since I use that location to filter my data, it cuts off all the data that would normally appear in the upperleft part of the viewable map.
If I scroll the map up and to the left for a ways, it will load the data I want, then I can scroll back to the original position and see it.
Am I not using this property correctly? Or is there a better way to get a reference to the part of the map that is currently being viewed?
Thanks