Custom Control

This sample shows how to create a simple custom control that centers and zooms the map to fit any data that is loaded on the map.

Usage:

Works with data in a HtmlMarkers, DataSource and ImageLayers

Custom Control does not support TileLayers and VectorTileSources.

Code:

Source Code