Select to view content in your preferred language

PrintMapUtil help needed

3076
0
06-11-2010 12:31 PM
by Anonymous User
Not applicable
Original User: rjgonzalez73

I am using the Flex Printing Utility from the code gallery and the scale bar is not always captured depending on the browser size.

mapImage1 shows the results from a maximized browser window and mapImage2 shows the results with a resized browser window with the following code (The width and height of the map passed to the function is included in each image)

<mx:Image id="mapImage" x="9" y="9" width="396" height="233" />
mapImage.source = PrintMapUtil.trimmedMap(_map,mapImage.width,mapImage.height);


_map1, _map2, _map3 shows the results of using the width and height of the map being passed to the function

mapImage.source = PrintMapUtil.trimmedMap(_map,_map.width,_map.height);


Can anyone explain how the PrintMapUtil.trimmedMap function captures an image or know of a way to capture the image the user sees regardless of browser size or screen resolution?
0 Kudos
0 Replies