{"id":15731926,"url":"https://github.com/leplatrem/django-leaflet-geojson","last_synced_at":"2025-05-07T02:41:01.882Z","repository":{"id":139547330,"uuid":"12272119","full_name":"leplatrem/django-leaflet-geojson","owner":"leplatrem","description":null,"archived":false,"fork":false,"pushed_at":"2014-01-07T08:55:49.000Z","size":665,"stargazers_count":59,"open_issues_count":7,"forks_count":25,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-31T05:31:37.800Z","etag":null,"topics":[],"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/leplatrem.png","metadata":{"files":{"readme":"README.rst","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":"2013-08-21T14:22:03.000Z","updated_at":"2024-12-28T16:29:12.000Z","dependencies_parsed_at":"2023-03-14T18:30:52.260Z","dependency_job_id":null,"html_url":"https://github.com/leplatrem/django-leaflet-geojson","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/leplatrem%2Fdjango-leaflet-geojson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leplatrem%2Fdjango-leaflet-geojson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leplatrem%2Fdjango-leaflet-geojson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leplatrem%2Fdjango-leaflet-geojson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leplatrem","download_url":"https://codeload.github.com/leplatrem/django-leaflet-geojson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252802437,"owners_count":21806501,"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":[],"created_at":"2024-10-04T00:07:06.121Z","updated_at":"2025-05-07T02:41:01.846Z","avatar_url":"https://github.com/leplatrem.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Example project of `Geodjango maps with Leaflet \u003chttp://blog.mathieu-leplatre.info/geodjango-maps-with-leaflet.html\u003e`_\n\n=======\nINSTALL\n=======\n\nInstall project dependencies :\n\n::\n\n    virtualenv env\n    source env/bin/activate\n\n    python setup.py develop\n\n\nOn Ubuntu, I use these commands to install Spatialite :\n\n::\n\n    sudo apt-add-repository -y ppa:ubuntugis/ppa\n    sudo apt-get update \u003e /dev/null\n\n    sudo apt-get install libgdal-dev libproj-dev libgeos-dev libspatialite-dev spatialite-bin\n\nAnd its python module *pysqlite* :\n\n::\n\n    wget http://pysqlite.googlecode.com/files/pysqlite-2.6.3.tar.gz\n    tar -zxvf pysqlite-2.6.3.tar.gz\n    cd pysqlite-2.6.3\n    sed -i \"s/define=SQLITE_OMIT_LOAD_EXTENSION//g\" setup.cfg\n    python setup.py install\n    cd .. \n\n\n=========\nLOAD DATA\n=========\n\nInitialize Spatialite DB :\n\n::\n\n    spatialite database.db \"SELECT InitSpatialMetaData();\"\n\n::\n\n    python manage.py syncdb\n\n\nLoad all weather station instances from GeoJSON :\n\n::\n\n    python manage.py shell\n\n    \u003e\u003e\u003e from django.core.serializers import deserialize\n    \u003e\u003e\u003e \n    \u003e\u003e\u003e source = open('Pub9volA130819x.geojson')\n    \u003e\u003e\u003e for ws in deserialize('geojson', source):\n    ...     ws.save()\n\n\n========\nTUTORIAL\n========\n\n::\n\n    python manage.py runserver\n\n\nHave a look at those 12 000 markers ! (ouch, you hear that ? That's your CPU fan...)\n\n\nAdd a spin while layer is loading\n---------------------------------\n\n* `Show me the code ! \u003chttps://github.com/leplatrem/django-leaflet-geojson/pull/1/files\u003e`_\n\n\n\nSwitch to TileLayer.GeoJSON\n---------------------------\n\n* `Show me the code ! \u003chttps://github.com/leplatrem/django-leaflet-geojson/pull/2/files\u003e`_\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleplatrem%2Fdjango-leaflet-geojson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleplatrem%2Fdjango-leaflet-geojson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleplatrem%2Fdjango-leaflet-geojson/lists"}