Permalink
Browse files

documented new 'chunks' option

  • Loading branch information...
1 parent 96d04ed commit bda7aeced7325e39411c54cd8cbd689609e9f284 @gka gka committed Mar 21, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 docs/kartograph.js/index.md
@@ -109,6 +109,14 @@ In Kartograph SVG maps, each path can hold a range of data attributes. In some s
map.addLayer('mylayer', { key: 'ISO' });
+### Prevent blocking of UI
+
+Sometimes when you're dealing with large maps containing lots of features, it happens that running *addLayer* will block the user interface for a second or so. To prevent this you can tell Kartograph.js to add the layer paths in smaller chunks, and giving the browser a chance to do other stuff in between.
+
+The following call will add the layer paths in chunks of 50 paths.
+
+ map.addLayer('mylayer', { chunks: 50 });
+
## Map Styling

0 comments on commit bda7aec

Please sign in to comment.