Need help with map size

34 views
Skip to first unread message

rdu...@trinitytg.com

unread,
Jan 2, 2013, 12:25:11 PM1/2/13
to opensca...@googlegroups.com
I am having issues with the inital map size displayed when my mobil application first starts.   My issue is my general lack of understanding of how thing work.   I have attached a PNG file that shows the problem.   I am building a mobil application that is using a Samsung Galaxy tablet.    I would like the map to fill the entire screen on start-up.  On startup the inital map looks like it might fit in a smart phone.   Can any on help me with this issues?   I am using OS 2.2, Flash Builder 4.7 and Air 3.4.    I am also running this locally using Flash developer on my desk top.
 
What do I need to do for fit this issue.
 
Code Below:
 
 _map = new Map(1200, 700);
_map.projection = "EPSG:900913";
   
_map.center = new Location(-97.18811511815088,41.07050388806316, "EPSG:900913");
_map.resolution = new Resolution(100000.0339, "EPSG:900913");
   
_map.maxExtent = new Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34,"EPSG:900913");
bing = new Bing("Ar3-LKk-acyISMevsF2bqH70h21mzr_FN9AhHfi7pS26F5hMH1DmpI7PBK1VCLBk",imagerySet="Aerial");
_map.addLayer(bing);
 
Thanks,
 
Randy

rdu...@trinitytg.com

unread,
Jan 4, 2013, 1:12:11 AM1/4/13
to opensca...@googlegroups.com

Problems solved.   I was able to determine that I needed to adjust the resolution.
 
Thanks,
 
Randy 
Reply all
Reply to author
Forward
0 new messages