'use client'

import React from 'react'
import { MapProvider } from '@/app/map-context'
import { MapComponent } from './map-component'
import { MapControls } from './map-controls'

export function MapExample() {
    return (
        <MapProvider>
            <div className="relative w-full h-screen">
                <MapComponent
                    center={[116.4074, 39.9042]} // 北京坐标
                    zoom={10}
                />
                <MapControls />
            </div>
        </MapProvider>
    )
} 