简体   繁体   中英

Creating offline map application in LWUIT

I am currently trying to create an offline map on LWUIT. But I have encountered some problems that I don't know how to solve or if it is even possible allowed in LWUIT. I am trying to use an image as a map, it has a file size of 300KB, but the problem is that it has a dimension of 2728x3323 which is way over the screen size of a mobile phone. That is why the OutOfMemoryException shows up if I try to create the Image to use it as a label. Is it possible to do panning on that image? If it is, can someone teach me or show me how it can be done? It is ok even if there is no zooming feature. I just want to see the whole image through panning. I also want to ask how to draw an image on top of it because I want to draw some lines and markers on the image programmatically. Any help would be so much appreciated.

Thanks

Its not possible in MIDP and not practical even in modern smartphones since individual application RAM is limited.

Mapping applications (even google maps on the browser) fetch much smaller images and tile them, this allows them to load multiple small images which are MUCH cheaper than a single large image.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM