Widget:Karte/JS

Aus Guild Wars 2 Wiki
Zur Navigation springen Zur Suche springen

/**

* Awesome wiki maps by Smiley
*
* based on Cliff's example
* http://jsfiddle.net/cliff/CRRGC/
*
* and Dr. Ishmaels proof of concept
* http://wiki.guildwars2.com/wiki/User:Dr_ishmael/leaflet
*
* included in this file:
*
* (minified) excerpts from phpJS
* http://phpjs.org
*
* Leaflet polyline decorator 
* https://github.com/bbecquet/Leaflet.PolylineDecorator
*(c) 2013 Benjamin Becquet
*
*/

var GW2Maps={init:function(c){if("object"!==typeof c)return!1;var b=GW2Maps.options(c),a={map:L.map(c,{maxZoom:b.max_zoom,crs:L.CRS.Simple,zoomControl:b.map_controls,attributionControl:!1}),layers:{},linkbox:$('