Basic Map (Europe)

Initialize a European map in an HTML element with Trimble Maps JS SDK. Region parameter is optional. If region is not set, it will default to the appropriate region based on your map data licensing.

<!DOCTYPE html>
        <meta charset="utf-8" />
        <link rel="stylesheet" href="" />
        <script src=""></script>
            body { margin: 0; padding: 0; }

            #map {
                position: absolute;
                top: 0;
                bottom: 0;
                width: 100%;
        <div id="map"></div>

            TrimbleMaps.APIKey = 'YOUR_API_KEY_HERE';
            const map = new TrimbleMaps.Map({
              container: 'map', // container id
                style: TrimbleMaps.Common.Style.TRANSPORTATION, // hosted style id
                center: [2.341319, 48.857108], // Paris
                region: TrimbleMaps.Common.Region.EU,
                zoom: 14 // starting zoom
Last updated May 7, 2021.