Polymaps / JSONP Queue
✓ Published0🌍 Public
Mmbostock
Last edited Aug 31, 2010
Created on Aug 31, 2010
This example demonstrates Polymaps loading geographic data asynchronously through a JSONP queue. It shows how the library fetches map tiles from a remote server using a callback-based mechanism, enabling cross-domain requests without CORS. The code extends `po.queue` with a `jsonp` function that injects a script tag, substituting a generated callback ID via the `{C}` placeholder in the URL template. The `Url.js` patch adds support for this placeholder, allowing the queue to manage multiple simultaneous requests while tracking active loads and cleanup procedures.
AI-generated description