1. Implementation details 2. Math details
Let me know 1, 2 or both and I'll fill you in.
1. Implementation details 2. Math details
Let me know 1, 2 or both and I'll fill you in.
blog.pseudopattern.com
Alright technical details. I used GWT for the front end. Mainly because I like working in an IDE, and because I don't have to worry about browser quirks (although I need to tweak the css some.)
All the tiles are generated by a single servlet. You can sort of tell how it was developed by the way it is called:
0.23x0x14.png?...
The first number is lambda. Next is the zoom. The next number is the id of the tile. Each zoom level is broken up into (4*2^zoom)^2 tiles. I need to break the x and y coordinate into separate pieces as this scheme starts hitting integer overflow errors around zoom 15.
You may notice that the PNG files are rather small. This is because they are index based on a 256 color palette (but with 24 bit colors). I wrote my own PNG file creator for this.
This is all in Java for the most part. I prefer ruby for putting something together, but Java had all the things I needed for the most part and the speed of it is really nice for this project.