Skip to content

Add hasFeature() to MXN Core #182

@vicchi

Description

@vicchi

Not all map providers support all the MXN core features. It's currently left to the caller to look at a given provider's implementation to determine what is and what isn't supported.

We should add a hasFeature() call to the MXN core to allow the caller to determine whether a feature is supported or not at run-time.

For example, OpenLayers only supports the OSM map style out of the box. So a call to mxn.hasFeature(mxn.Mapstraction.PHYSICAL) when using OpenLayers would return false, whereas the same call when using Google v3 would return true.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions