React Common - Utils - viz - map - projection

A namespace with methods that manipulate map projections.

add(name, projection)

Adds a new projection to the internal projections storage.

Parameters:
name:

String

The projection's name.

projection:

Object

The projection returned by the projection(data) method.

get(name)

Gets the default or custom projection from the projection storage.

Parameters:
name:

String

The projection's name.

Return Value:

Object

The projection.

By default, you can get the following projections by their names.

You can also implement your own projection/) and add it to the projections storage/#addname_projection). After that, you can get the added projection using the get(name) method.

To apply the projection, assign the returning object to the projection option of the widget.