solid backgrid for Transparent Tiles on GRID

19 views
Skip to first unread message

Hermes David

unread,
Apr 27, 2012, 10:44:54 AM4/27/12
to openscales-dev
Hi,

Im using a transparent PNG tile service over a solid tile map service.
When I pan, GRID.actualizeGrid is called and draws the current scene
on a bitmap for each layer, spliting it to the tiles for preload while
the real images are still loading. The problem is that its generating
a solid image, even for transparent tiles, wich makes the map tiles to
be covered by a white image.

To fix this all that must be done is to change the value from false to
true as showed bellow:

// Draw the current scene into a Bitmap
BMD = new BitmapData(drawnWidth, drawnHeight, false,
this.map.backTileColor);

to

// Draw the current scene into a Bitmap
BMD = new BitmapData(drawnWidth, drawnHeight, true,
this.map.backTileColor);

on GRID.actualizeGrid, line 323

I would appreciate if this change is included on the next release

Thanks in advance,
Hermes David

Maxime Viry

unread,
May 3, 2012, 3:51:34 AM5/3/12
to opensca...@googlegroups.com
Hi,

Thank you for reporting this bug.
We've just integrated your fix to the develop branch of Openscales.
You'll find it in the next version of Openscales.

Best regards,
Viry Maxime




--
You received this message because you are subscribed to the Google Groups "openscales-dev" group.
To post to this group, send email to opensca...@googlegroups.com.
To unsubscribe from this group, send email to openscales-de...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openscales-dev?hl=en.


Reply all
Reply to author
Forward
0 new messages