Reputation: 13
I've exported the MBTile file using MBUtil but it wasn't generating all the PNG tiles when I'm creating the Overlay map using OpenLayers. What am I missing?
Upvotes: 1
Views: 2045
Reputation: 11882
Could you clarify this question? Is TileMill not generating the tiles correctly (is it crashing? stalling? any other signs of errors?), or is it completing the MBTiles export and the problem is getting your layer onto a page?
Given the code you posted, you should check to see that http://localhost:8888/1.0.0/firstProject/0/0/0.png
(or a higher-number tile if you didn't render zoom level zero) is present. If you've just used mbutil to export the tiles, it's likely that you don't have the 1.0.0
part of that URL around - which is necessary for the TMS layer to work. Just make a directory called 1.0.0
and move firstProject
into it if that's the case.
Upvotes: 2