locate-the-news / frontend / src / config / MapboxConfig.js
MapboxConfig.js
Raw
export const MAPBOX_TOKEN = process.env.REACT_APP_MAPBOX_TOKEN || 'pk.eyJ1IjoiY2V5ZGFyaWsiLCJhIjoiY21qeDRjemE4Mjk2NjNlcXNvNGUzZTNzdSJ9.VCvw-G61YAke7zHk2rPiGw';

export const INITIAL_VIEW_STATE = {
    longitude: 0,
    latitude: 20,
    zoom: 2,
    pitch: 0,
    bearing: 0
};

export const MAP_SETTINGS = {
    minZoom: 0,
    maxZoom: 18,
    dragRotate: true,
    touchZoomRotate: true
};

export const ZOOM_LEVELS = {
    WORLD: { min: 0, max: 3 },
    COUNTRY: { min: 3, max: 7 },
    CITY: { min: 7, max: 18 }
};

export const CLUSTER_CONFIG = {
    radius: 50,      // Kümelerin yarıçapı (clusterRadius)
    maxZoom: 14,     // Noktaların kümeleneceği maksimum zoom seviyesi (clusterMaxZoom)
    minZoom: 0,
    minPoints: 2,
    cluster: true
};