BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 03-08-2010, 11:57 PM   #1 (permalink)
New Member
 
Join Date: Feb 2008
Model: 8820
PIN: N/A
Carrier: T-mobile
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Smile Relocating the bitmapfield in MapField, in zoom in and zoom out

Please Login to Remove!

Hi all,

I am new to Blackberry Map. If i add a location with the image, how is possible to keep the image on the same location in zoom in or zoom out.

Please help me on this...!!
Offline  
Old 03-10-2010, 11:53 PM   #2 (permalink)
New Member
 
Join Date: Feb 2008
Model: 8820
PIN: N/A
Carrier: T-mobile
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

This will work upto an extend
in MapField`s paint() method,

XYPoint fieldOut = new XYPoint();
int imgW = 0;
int imgH = 0;
if (null != imgRed) {
if (null == xyRect) {
Coordinates cordinate = new Coordinates(latitude,longitude,altitude);
_mapField.convertWorldToField(cordinate, fieldOut);
imgW = imgRed.getWidth();
imgH = imgRed.getHeight();
xyRect = new XYRect(fieldOut.x - imgW / 2,
fieldOut.y - imgH, imgW, imgH);
graphics.drawBitmap(xyRect, imgRed, 0, 0);
}

}
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

2.2KW Air Cooled Spindle Motor ER20 & 2.2kw HY VFD Inverter 220V &80mm Clamp CNC
$280.0
2.2KW Air Cooled Spindle Motor ER20 & 2.2kw HY VFD Inverter 220V &80mm Clamp CNC pictureWELDING INVERTER POWER 160A
$654.35
WELDING INVERTER POWER 160A pictureMitsubishi FR-S520S-0.4K-CH Inverter T60192
$299.0
Mitsubishi FR-S520S-0.4K-CH Inverter T60192 pictureBerger Lahr VRDM397/50LWCEO Inverter-duty Motor T36364
$369.0
Berger Lahr VRDM397/50LWCEO Inverter-duty Motor T36364 pictureSEW Eurodrive MC07A008-5A3-4-00, 0031364 Drive Frequency Inverter, AC Drive T334
$335.0
SEW Eurodrive MC07A008-5A3-4-00, 0031364 Drive Frequency Inverter, AC Drive T334 picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.