03-07-2011 08:51 AM
I'm trying to make a custom screen like the blackberry maps application (drag and zoom) except I show my own images. I'm able to drag the image around with drawbitmap but because of the top and left parameters I can only go two ways, ie if the top/left parameters are negative I get an Illegal Argument Exception.
Is this the right way to go about this? I thought about making the bitmap I'm showing larger, but it seems like that isn't a great way of doing it because if they zoom out just a little too far or drag the image too far then I'll throw an exception.
Solved! Go to Solution.
03-07-2011 09:12 AM
Even the MapField is implemented this way, requiring you to check that you don't go outside its bounding limits for zoom and pan or it throws an Exception. You're probably just going to have to continue on with what you're doing, but throw checks in your methods to check that you aren't going too far.