Get your own customer support community
 

modestmap pygame/pyglet tilesets

I'm trying to get modest map work on top of pygame and pyglet, is there a way to get next tile if I get the PIL image with mapByExtent (I need next image of the same dimensions to construct tileset) I tried to get next tile with map.pointLocation(point) but for some reason it doesn't do what I expect.
The thing that confuses me is that the location and point from location is giving me different values:

self.map = ModestMaps.mapByExtent(self.provider, self.locationA, self.locationB, self.dimensions)
print self.locationA,self.locationB
point = ModestMaps.Core.Point (0,0)
print self.map.pointLocation(point)
point = ModestMaps.Core.Point (512,512)
print self.map.pointLocation(point)

I have the image defaulting to 512x512 as seen above.
Any help or tip is appreciated :)
Inappropriate?
1 person has this question

User_default_medium