Zoomer

A simple zoom control offering zoom in & out buttons. It creates links and appends them to the map.

Example

var mm = com.modestmaps;

wax.tilejson('https://api.tiles.mapbox.com/v3/mapbox.world-bright.jsonp',
    function(tilejson) {
    var m = new mm.Map('map-div',
      new wax.mm.connector(tilejson));
    wax.mm.zoomer(m, tilejson).appendTo(m.parent);
    m.setCenterZoom(new mm.Location(39, -98), 2);
});

API

var zoomer = wax.mm.zoomer(map)

Create your own zoomer that controls a map called ‘map’

zoomer.appendTo(element)

Add the zoom in & zoom out div elements to another element.