Good morning...
I know already that nobody's every seen this before, but I am having a map rotation issue that is driving me crazy. Depending on how I code my map rotation the contents of an InMemoryLayer gets out of sync with the contents of a SqlServer layer. How can this happen?
Here's what my map starts as (I am driving across one marking lot to a driveway and then across another parking lot)...
...and as soon as I rotate the map the layers get out of sync...
Depending on how I code the rotation and CenterAt() call, this loss of layer sync happens after the first or second redraw.
In case it helps, this is what I'm trying to do: In this mode, the vehicle's direction of travel always points to the top of the map. To prevent a lot of map refreshing, when the vehicle's bearing has changed by a certain amount, I recenter the map at the most latest vehicle position and also rotate the map so that the vehicle's position is pointing at the top of the map again. But I have constantly struggled to get this to happen while the map is rotated. I can set the rotation to 0, apply my changes, then rotate the map, but in order to get that to work I have to refresh the map after setting the rotation to 0, which causes a double redraw that nobody likes.
I am still struggling with recentering the map and applying rotation in one step. If I do it one way, I get goofy stuff like you see above. If I do it another way, the map jumps all over the place. PLEASE! Do not direct me to the samples...I have been there many times before and the multi-layer complications I am seeing with this application, which has 30 or 40 layers, don't show up when you're just rotating one layer. AND, as I've said before, the example DOES NOT attempt to rotate the map and recenter it at the same time.
Thanks for any suggestions!
Allen