{"id":13936124,"url":"https://github.com/amaanabbasi/3DmapsDjango","last_synced_at":"2025-07-19T21:31:44.925Z","repository":{"id":49696133,"uuid":"140179171","full_name":"amaanabbasi/3DmapsDjango","owner":"amaanabbasi","description":"How to Add Maps + 3D buildings to Django Web App","archived":false,"fork":false,"pushed_at":"2022-12-08T02:15:39.000Z","size":35,"stargazers_count":30,"open_issues_count":4,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-27T04:30:37.632Z","etag":null,"topics":["3d-map","django","django-map","interactive-maps","mapbox"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amaanabbasi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-08T15:19:38.000Z","updated_at":"2024-11-22T18:38:34.000Z","dependencies_parsed_at":"2023-01-25T03:15:48.593Z","dependency_job_id":null,"html_url":"https://github.com/amaanabbasi/3DmapsDjango","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/amaanabbasi/3DmapsDjango","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaanabbasi%2F3DmapsDjango","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaanabbasi%2F3DmapsDjango/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaanabbasi%2F3DmapsDjango/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaanabbasi%2F3DmapsDjango/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amaanabbasi","download_url":"https://codeload.github.com/amaanabbasi/3DmapsDjango/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaanabbasi%2F3DmapsDjango/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266019657,"owners_count":23864916,"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":["3d-map","django","django-map","interactive-maps","mapbox"],"created_at":"2024-08-07T23:02:24.256Z","updated_at":"2025-07-19T21:31:39.851Z","avatar_url":"https://github.com/amaanabbasi.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# 3DmapsDjango\nAdding maps to your Django apps. The following steps will guide you through on how to add maps to your django projects. Along with,\ndisplaying 3D buildings. I have used [Mapbox](https://www.mapbox.com/api-documentation/) api for this project.\n\n# Sign-up for Mapbox\n\nHead to the [Mapbox](https://www.mapbox.com/). Click on \"Get started\". Sign up for a free account. Once you have signed in,\nClick the \"JS Web\" option. Then, choose \"Use the Mapbox CDN\" to install Mapbox GL JS. Once you have done that you will be provided with a access token, like this one \"pk.eyJ1IjoIcGVuh29veCIsImEiOiJjampHNshreDkwbGZ5M3BxbXZkdDQ0dGdpIn1.-36WPGfz6NY90m3trPkNyw\".\n\n![2018-07-08 1](https://user-images.githubusercontent.com/30196830/42422235-dc232b4a-82ff-11e8-82e5-d6f6f54b4da8.png)\n\n# Getting started\n* Clone the repository.\n* Create a virtual environment.\n\n`python -m venv djangomaps`\n\n* Activate the virtualenv\n\n`.\\Scripts\\activate` (Windows users)\n\nor\n\n`source djangomaps/bin/activate` (mac users)\n\n* This will install all the neccessary packages.\n\n`pip install -r requirements.txt`\n\n* After its done, cd into `src/maps`, open `views.py` and put the access token within the quotes.\n  Go ahead and run the application.\n\n```python\npython manage.py runserver\n```\n\n* Go to localhost\n\n![local](https://user-images.githubusercontent.com/30196830/42422925-f308a002-830d-11e8-82e7-61d62c8a0774.png)\n\n\n\n\n[Detailed instructions](https://pengoox.github.io/3DmapsDjango/)\n\n# Usage\n\nviews.py\n\n```python\ndef default_maps(request):\n\t# TODO: move Token to settings.py file\n\tmapbox_access_token = 'PUT TOKEN HERE.'\n\t\n\treturn render(request, 'details.html', {'mapbox_access_token':mapbox_access_token})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famaanabbasi%2F3DmapsDjango","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famaanabbasi%2F3DmapsDjango","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famaanabbasi%2F3DmapsDjango/lists"}