kartograph / kartograph.js

UNMAINTAINED Open source JavaScript renderer for Kartograph SVG maps
http://kartograph.org
GNU Lesser General Public License v3.0
1.51k stars 227 forks source link

When using chunks, order of laysers is not preserved #57

Open rotsee opened 10 years ago

rotsee commented 10 years ago

I have a map with multiple layers, where the some layers should be displayed on top of others. This works well. My problem is that the first layer is big, and it would be nice to be able to use the chunks option to render it a bit at a time. However, when using chunks, all paths are put at the bottom of the svg, making them cover things added later:

map.addLayer('hugelayer', {
    chunks: 50
});
map.addLayer('anotherlayer');