Some questions about TMS layers as a base layers

10 views
Skip to first unread message

Zantagor

unread,
Aug 6, 2010, 11:12:19 AM8/6/10
to openscales-dev
hi, We're loading tiled JPGs/PNGs as TMS layers in Openscale as a
baselayer, we got at least 2 issues we're trying to figure out.


#1: Is there a way to know the actual center of the TMS layer (since
it's not really geo-referenced). Not all images have the same size
and such, and I couldn't see any ways to figure out the center.

#2: We have a function to make the openscale part of the app into full
screen, but with the resize, the image won't "zoom" to the edge of the
sprite, it'll stay the same size and all, making it look odd (image
with huge white border), is there a way for the "map" to zoom to fit
the edges of the images to match the map sprite's size?

Any hint or info would be greatly appreciated.

Zantagor

unread,
Aug 27, 2010, 9:41:53 AM8/27/10
to openscales-dev
Anyone have any ideas on these?

Kyle Wilcox

unread,
Aug 27, 2010, 1:25:24 PM8/27/10
to opensca...@googlegroups.com
#1: map.center or layer.extent.centerLonLat

#2: You could zoom in or out after changing sizes.

> --
> 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.
>
>

Zantagor

unread,
Aug 27, 2010, 3:05:37 PM8/27/10
to openscales-dev
as I was saying, the image isn't georeferenced. It's not located on
an actual map. It's a simple tiled JPG.


On Aug 27, 1:25 pm, Kyle Wilcox <wilcox.k...@gmail.com> wrote:
> #1: map.center  or   layer.extent.centerLonLat
>
> #2: You could zoom in or out after changing sizes.
>
Reply all
Reply to author
Forward
0 new messages