mapfish. widgets. recenter. Coords

Recenters (and zooms if asked) on user-provided coordinates.

Typical usage

var coordsrecenter = new mapfish.widgets.recenter.Coords({
   el: 'myDiv',
   map: map,
   scales: config.scales, // list of available scales.
                          // ie. [100000, 50000, 25000, 10000]
                          // If not provided, no scales combo is displayed
   showCenter: true,      // boolean, indicates if a symbol must be shown
                          // at the new center
   defaultZoom: 4         // zoom level used if no zoom level is provided by
                          // the user. If no zoom level value is available,
                          // zoom level remains unchanged.
});

Inherits from

Summary
mapfish. widgets. recenter. CoordsRecenters (and zooms if asked) on user-provided coordinates.
Constructor
mapfish. widgets. recenter. Coords

Constructor

mapfish. widgets. recenter. Coords

Parameters

config{Object} The config object used to set the recenter on coordinates properties, see beloaw for an example of usage.  Returns: {mapfish.widgets.recenter.Coords}
Base class for various recentering tools.
Close