Get started
Examples

Open the map on your own style

Open the map on your own style

mapStyle opens the map on a style document you host, bypassing the layers manifest. Reach for it when your base map is not one of ours.

import { MapView } from "@mountaya/elements-react";

export const BrandMap = () => (
  <div style={{ height: 420, position: "relative" }}>
    <MapView
      center={[6.87, 45.85]}
      client={client}
      mapStyle="https://tiles.example.com/style.json"
      zoom={12}
    />
  </div>
);

The tile credential still applies, so any Mountaya source inside that style authenticates the same way.

Next steps