{"id":14845488,"url":"https://github.com/aesqe/mapboxgl-minimap","last_synced_at":"2025-09-18T04:32:40.304Z","repository":{"id":57095403,"uuid":"60124877","full_name":"aesqe/mapboxgl-minimap","owner":"aesqe","description":"Mapbox GL minimap control","archived":false,"fork":false,"pushed_at":"2023-09-04T23:42:52.000Z","size":19,"stargazers_count":80,"open_issues_count":4,"forks_count":27,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-30T18:06:10.841Z","etag":null,"topics":["mapbox","mapbox-gl-js","minimap"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aesqe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://www.paypal.me/aesqe"}},"created_at":"2016-05-31T21:31:22.000Z","updated_at":"2024-12-13T06:24:08.000Z","dependencies_parsed_at":"2022-08-22T23:10:27.017Z","dependency_job_id":null,"html_url":"https://github.com/aesqe/mapboxgl-minimap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aesqe%2Fmapboxgl-minimap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aesqe%2Fmapboxgl-minimap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aesqe%2Fmapboxgl-minimap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aesqe%2Fmapboxgl-minimap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aesqe","download_url":"https://codeload.github.com/aesqe/mapboxgl-minimap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233451328,"owners_count":18678210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mapbox","mapbox-gl-js","minimap"],"created_at":"2024-09-19T13:00:32.790Z","updated_at":"2025-09-18T04:32:35.011Z","avatar_url":"https://github.com/aesqe.png","language":"JavaScript","readme":"# Mapbox GL Minimap Control\n\n![npm (scoped)](https://img.shields.io/npm/v/@aesqe/mapboxgl-minimap)\n\n## Demo\n[Demo on GitHub pages](http://aesqe.github.io/mapboxgl-minimap/)\n\n**--- work in progress; overall performance can probably be improved ---**\n\n## How to use it\n\n```javascript\nvar map = new mapboxgl.Map({\n  container: \"map\",\n  style: \"mapbox://styles/mapbox/streets-v8\",\n  center: [-73.94656812952897, 40.72912351406106],\n  zoom: 7\n});\n\nmap.on(\"style.load\", function () {\n  // Possible position values are 'bottom-left', 'bottom-right', 'top-left', 'top-right'\n  map.addControl(new mapboxgl.Minimap(), 'top-right');\n});\n```\n\n## Options\n\n```javascript\n{\n  id: \"mapboxgl-minimap\",\n  width: \"320px\",\n  height: \"180px\",\n  style: \"mapbox://styles/mapbox/streets-v8\",\n  center: [0, 0],\n  zoom: 6,\n\n  // should be a function; will be bound to Minimap\n  zoomAdjust: null,\n\n  // if parent map zoom \u003e= 18 and minimap zoom \u003e= 14, set minimap zoom to 16\n  zoomLevels: [\n    [18, 14, 16],\n    [16, 12, 14],\n    [14, 10, 12],\n    [12, 8, 10],\n    [10, 6, 8]\n  ],\n\n  lineColor: \"#08F\",\n  lineWidth: 1,\n  lineOpacity: 1,\n\n  fillColor: \"#F80\",\n  fillOpacity: 0.25,\n\n  dragPan: false,\n  scrollZoom: false,\n  boxZoom: false,\n  dragRotate: false,\n  keyboard: false,\n  doubleClickZoom: false,\n  touchZoomRotate: false\n}\n```\n\n## Compatibility\n\nThe latest version should be compatible with maboxgl 0.54.0\n","funding_links":["https://www.paypal.me/aesqe"],"categories":["User Interface Plugins"],"sub_categories":["JavaScript"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faesqe%2Fmapboxgl-minimap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faesqe%2Fmapboxgl-minimap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faesqe%2Fmapboxgl-minimap/lists"}