BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-22-2009, 08:15 AM   #1 (permalink)
New Member
 
Join Date: Sep 2009
Model: 8330
PIN: N/A
Carrier: No Carrier
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Mapfield only displaying "No data available"

Please Login to Remove!

Hi,



in my application, i tried to display a mapfield on a mainscreen. But when i call the mapfield screen, i only see a diagonal striped display with the text "No data available". Below is the code i use to display the mapfield:



Code:
 public class MapScreen extends MainScreen {
    
    public MapScreen() {
        super();
        
         MapField mapField = new MapField();
         mapField.setZoom(3);
         Coordinates coordinatesToConvert = new  Coordinates(54.15734,9.08128,50);
         XYPoint xyptCartPlain = new XYPoint(Display.getWidth(), Display.getHeight());
         mapField.convertWorldToField(coordinatesToConvert, xyptCartPlain);
         add(mapField);
    }
}


The build in Maps Application works fine.



Regards,

Grinarn
Offline  
Old 09-22-2009, 08:52 AM   #2 (permalink)
New Member
 
Join Date: Sep 2009
Model: 8330
PIN: N/A
Carrier: No Carrier
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

What i found out is, that if i set the zoom of mapfield to >= 5 i get a light blue color into my map and no "No data available" text.
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

MDC NOR-CAL LOT OF 30 NW25 FITTINGS, CLAMPS, ORINGS
$70.0
MDC NOR-CAL LOT OF 30 NW25 FITTINGS, CLAMPS, ORINGS pictureNOR-CAL ISO-63-000-OF OPTIONAL FASTENER BLANK - LOT OF 2 - NEW
$30.0
NOR-CAL ISO-63-000-OF OPTIONAL FASTENER BLANK - LOT OF 2 - NEW pictureGMCW PRECISIONBREW 1 GAL. VACUUM INSULATED SHUTTLE W/ STAND - VS-1.0S
$271.0
GMCW PRECISIONBREW 1 GAL. VACUUM INSULATED SHUTTLE W/ STAND - VS-1.0S pictureMDC NOR-CAL 1.33" CONFLAT FLANGE HIGH VOLTAGE FEED-THROUGH W MANIFOLD LOT OF 5
$125.0
MDC NOR-CAL 1.33JB INDUSTRIES VACUUM PUMP OIL, BLACK GOLD, 1 QUART, per 4 Each
$39.41
JB INDUSTRIES VACUUM PUMP OIL, BLACK GOLD, 1 QUART,  per 4 Each picture






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