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

[Feature Request]: Add callback function if map loading fails #56

Open rotsee opened 10 years ago

rotsee commented 10 years ago

It would be really nice to be able to run some code if loading the map fails!

        map.loadMap( mapName )
            .done ( function() {
                     /* do stuff */
            })
            .error ( function(e) {
                    /* ops */
            });