Anmoldeep Singh

LayerMarkers

Dashboards 134

About

A high-performance MapLibre marker layer that renders many clickable point markers from GeoJSON.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds LayerMarkers to your project and fits it to your theme.

Code

How LayerMarkers is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { LayerMarkers, Map } from "@/components/ui/mapcn-layer-markers";

const settings = {
  center: [-73.98, 40.75],
  zoom: 11,
};

export default function LayerMarkersDemo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <div className="h-screen w-screen flex items-center justify-center bg-background p-8 overflow-hidden">
      <div className="h-[420px] w-full max-w-4xl overflow-hidden rounded-xl border shadow-sm">
        <Map center={s.center} zoom={s.zoom}>
          <LayerMarkers />
        </Map>
      </div>
    </div>
  );
}

export { LayerMarkersDemo };

Dependencies

More by Anmoldeep Singh

View all
  • MarkerPopup

    MarkerPopup

    414
  • MapArc

    MapArc

    284
  • Map

    Map

    257
  • MarkerTooltip

    MarkerTooltip

    197
  • MarkerLabel

    MarkerLabel

    109
  • MarkerContent

    MarkerContent

    80
  • MapMarker

    MapMarker

    80
  • MapControls

    MapControls

    55

More in Dashboards

View all
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.4K
  • Sidebar

    Sidebar

    234
  • SaaS Template

    SaaS Template

    2.4K
  • Stats Bento

    Stats Bento

    1.1K
  • Financial Bento Grid

    Financial Bento Grid

    71
  • Stats cards with links

    Stats cards with links

    33
  • Course Design Cards

    Course Design Cards

    1.1K
  • Chat template

    Chat template

    598