{"id":13878089,"url":"https://github.com/ankane/mapkick-static","last_synced_at":"2025-11-17T14:16:37.904Z","repository":{"id":156719336,"uuid":"632851883","full_name":"ankane/mapkick-static","owner":"ankane","description":"Create beautiful static maps with one line of Ruby","archived":false,"fork":false,"pushed_at":"2025-07-22T02:14:48.000Z","size":19,"stargazers_count":72,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-16T18:32:00.922Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/ankane.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-04-26T09:05:43.000Z","updated_at":"2025-07-22T02:14:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1247ff6-f8e5-4ac2-b546-f13c55241ba3","html_url":"https://github.com/ankane/mapkick-static","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ankane/mapkick-static","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fmapkick-static","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fmapkick-static/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fmapkick-static/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fmapkick-static/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ankane","download_url":"https://codeload.github.com/ankane/mapkick-static/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fmapkick-static/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284894653,"owners_count":27080744,"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","status":"online","status_checked_at":"2025-11-17T02:00:06.431Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-08-06T08:01:39.554Z","updated_at":"2025-11-17T14:16:37.887Z","avatar_url":"https://github.com/ankane.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Mapkick Static\n\nCreate beautiful static maps with one line of Ruby. No more fighting with mapping libraries!\n\n[See it in action](#maps)\n\n:fire: For JavaScript maps, check out [Mapkick](https://chartkick.com/mapkick)\n\n[![Build Status](https://github.com/ankane/mapkick-static/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/mapkick-static/actions)\n\n## Installation\n\nAdd this line to your application’s Gemfile:\n\n```ruby\ngem \"mapkick-static\"\n```\n\nMapkick Static uses the [Mapbox Static Images API](https://docs.mapbox.com/api/maps/static-images/). [Create a Mapbox account](https://account.mapbox.com/auth/signup/) to get an access token and set `ENV[\"MAPBOX_ACCESS_TOKEN\"]` in your environment.\n\n## Maps\n\nPoint map\n\n\u003cimg src=\"https://chartkick.com/mapkick-static/map-2x?v3\" alt=\"Point map\" width=\"100%\" height=\"100%\"\u003e\n\n```erb\n\u003c%= static_map [{latitude: 37.7829, longitude: -122.4190}] %\u003e\n```\n\nArea map\n\n\u003cimg src=\"https://chartkick.com/mapkick-static/area-map-2x?v1\" alt=\"Area map\" width=\"100%\" height=\"100%\"\u003e\n\n```erb\n\u003c%= static_area_map [{geometry: {type: \"Polygon\", coordinates: ...}}] %\u003e\n```\n\n## Data\n\nData can be an array\n\n```erb\n\u003c%= static_map [{latitude: 37.7829, longitude: -122.4190}] %\u003e\n```\n\n### Point Map\n\nUse `latitude` or `lat` for latitude and `longitude`, `lon`, or `lng` for longitude\n\nYou can specify a color for each data point\n\n```ruby\n{\n  latitude: ...,\n  longitude: ...,\n  color: \"#f84d4d\"\n}\n```\n\n### Area Map\n\nUse `geometry` with a GeoJSON `Polygon` or `MultiPolygon`\n\nYou can specify a color for each data point\n\n```ruby\n{\n  geometry: {type: \"Polygon\", coordinates: ...},\n  color: \"#0090ff\"\n}\n```\n\n## Options\n\nWidth and height\n\n```erb\n\u003c%= static_map data, width: 800, height: 500 %\u003e\n```\n\nAlt text\n\n```erb\n\u003c%= static_map data, alt: \"Map of ...\" %\u003e\n```\n\nMarker color\n\n```erb\n\u003c%= static_map data, markers: {color: \"#f84d4d\"} %\u003e\n```\n\nMap style\n\n```erb\n\u003c%= static_map data, style: \"mapbox/outdoors-v12\" %\u003e\n```\n\n## History\n\nView the [changelog](https://github.com/ankane/mapkick-static/blob/master/CHANGELOG.md)\n\n## Contributing\n\nEveryone is encouraged to help improve this project. Here are a few ways you can help:\n\n- [Report bugs](https://github.com/ankane/mapkick-static/issues)\n- Fix bugs and [submit pull requests](https://github.com/ankane/mapkick-static/pulls)\n- Write, clarify, or fix documentation\n- Suggest or add new features\n\nTo get started with development:\n\n```sh\ngit clone https://github.com/ankane/mapkick-static.git\ncd mapkick-static\nbundle install\nbundle exec rake test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankane%2Fmapkick-static","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fankane%2Fmapkick-static","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankane%2Fmapkick-static/lists"}