{"id":18564341,"url":"https://github.com/heyman/leaflet-usermarker","last_synced_at":"2025-10-07T08:03:39.169Z","repository":{"id":9362952,"uuid":"11217216","full_name":"heyman/leaflet-usermarker","owner":"heyman","description":"Leaflet plugin for plotting a marker representing a user, or multiple users, on a Leaflet map","archived":false,"fork":false,"pushed_at":"2020-11-06T12:53:58.000Z","size":20,"stargazers_count":78,"open_issues_count":4,"forks_count":20,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-12-08T05:23:06.272Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CSS","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/heyman.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-06T11:22:33.000Z","updated_at":"2024-11-20T03:12:48.000Z","dependencies_parsed_at":"2022-09-22T16:40:25.387Z","dependency_job_id":null,"html_url":"https://github.com/heyman/leaflet-usermarker","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/heyman%2Fleaflet-usermarker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyman%2Fleaflet-usermarker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyman%2Fleaflet-usermarker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyman%2Fleaflet-usermarker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heyman","download_url":"https://codeload.github.com/heyman/leaflet-usermarker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230542288,"owners_count":18242332,"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-11-06T22:14:53.955Z","updated_at":"2025-10-07T08:03:34.125Z","avatar_url":"https://github.com/heyman.png","language":"CSS","readme":"==================\nLeaflet UserMarker\n==================\n\nUserMarker is a leaflet plugin for plotting a marker representing a user, \nor multiple users, on a map.\n\n.. image:: https://images.weserv.nl/?url=static.longitude.me/img/opengraph-image.jpg\n    :alt: longitude.me\n\n\nFeatures\n========\n\nLeaflet UserMarker is an iOS style marker for representing users on a map. It \nextends Leaflet's `Marker \u003chttps://leafletjs.com/reference.html#marker\u003e`_ class, \nso everything you can do with a normal marker - like setting lat/lng and binding \npopups - can be done with UserMarker's as well. In addition to this, UserMarker \nhas the following features:\n\n* Ability to set accuracy which will be displayed as a blue, transparent circle \n  around the marker.\n* Turn on/off a \"pulsing\" effect that can be used to represent high accuracy, or \n  if a user is online.\n\n\nSee it in action\n================\n\nLeaflet UserMarker can be seen in action on `Longitude.me \u003chttps://longitude.me\u003e`_ and \n`What is my address? \u003chttps://whatismyaddress.net\u003e`_\n\nYou can also see the `bundled examples \u003chttps://heyman.github.com/leaflet-usermarker/example/\u003e`_.\n\n\nExample Code\n============\n\n**Create a user marker and add it to a map:**\n\n.. code-block:: javascript\n\n    var marker = L.userMarker([5.45, 70.56]);\n    marker.addTo(map);\n  \n**Set accuracy on an existing marker:**\n\n.. code-block:: javascript\n\n    marker.setAccuracy(400); // 400 meters accuracy\n\n**Create a \"pulsing\" marker with small icon and accuracy 100:**\n\n.. code-block:: javascript\n\n    var marker = L.userMarker(latlng, {pulsing:true, accuracy:100, smallIcon:true});\n    marker.addTo(map);\n\n**Locate the map viewers position and display a UserMarker:**\n\n.. code-block:: javascript\n\n    map.on(\"locationfound\", function(location) {\n        if (!marker)\n            marker = L.userMarker(location.latlng).addTo(map);\n        \n        marker.setLatLng(location.latlng);\n        marker.setAccuracy(location.accuracy);\n    });\n    map.locate({\n        watch: false,\n        locate: true,\n        setView: true,\n        enableHighAccuracy: true\n    });\n\n\nAuthor\n======\n\nUsermarker is developed by `Jonatan Heyman \u003chttp://heyman.info\u003e`_. \n\nAnother website of mine is `boutiquehotel.me \u003chttps://boutiquehotel.me\u003e`_, which is a site for \nfinding great `boutique hotels \u003chttps://boutiquehotel.me\u003e`_ all around the world. For example, \ncheck out boutique hotels in `Stockholm \u003chttps://boutiquehotel.me/stockholm/\u003e`_, \n`London \u003chttps://boutiquehotel.me/london/\u003e`_, `New York \u003chttps://boutiquehotel.me/new-york/\u003e`_, \nor `Berlin \u003chttps://boutiquehotel.me/berlin/\u003e`_.\n\n\nLicense\n=======\n\nMIT License\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheyman%2Fleaflet-usermarker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheyman%2Fleaflet-usermarker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheyman%2Fleaflet-usermarker/lists"}