private void Start()
        {
            OnlineMaps map = OnlineMaps.instance;

            // Create markers.
            OnlineMapsMarkerManager.CreateItem(new Vector2(0, 0));
            OnlineMapsMarkerManager.CreateItem(new Vector2(0, 0.01f));
            OnlineMapsMarkerManager.CreateItem(new Vector2(0, -0.01f));

            // Sets a new comparer.
            OnlineMapsMarkerFlatDrawer drawer = (OnlineMapsTileSetControl.instance.markerDrawer as OnlineMapsMarkerFlatDrawer);

            if (drawer != null)
            {
                drawer.markerComparer = new MarkerComparer();
            }

            // Get the center point and zoom the best for all markers.
            Vector2 center;
            int     zoom;

            OnlineMapsUtils.GetCenterPointAndZoom(OnlineMapsMarkerManager.instance.ToArray(), out center, out zoom);

            // Change the position and zoom of the map.
            map.position = center;
            map.zoom     = zoom;
        }
    protected override void OnEnableLate()
    {
        base.OnEnableLate();

        if (marker2DMode == OnlineMapsMarker2DMode.flat)
        {
            markerDrawer = new OnlineMapsMarkerFlatDrawer(this);
        }
        else
        {
            markerDrawer = new OnlineMapsMarkerBillboardDrawer(this);
        }
    }