{"id":19423245,"url":"https://github.com/atomjoy/marker","last_synced_at":"2026-02-05T12:32:02.787Z","repository":{"id":232942549,"uuid":"785607580","full_name":"atomjoy/marker","owner":"atomjoy","description":"Map marker images.","archived":false,"fork":false,"pushed_at":"2024-04-12T14:39:55.000Z","size":1991,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-17T10:59:40.573Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/atomjoy.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-12T08:29:46.000Z","updated_at":"2024-04-12T10:51:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"c5b667ae-2dc9-4d22-bed1-caa29909745e","html_url":"https://github.com/atomjoy/marker","commit_stats":null,"previous_names":["atomjoy/marker"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/atomjoy/marker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomjoy%2Fmarker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomjoy%2Fmarker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomjoy%2Fmarker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomjoy%2Fmarker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atomjoy","download_url":"https://codeload.github.com/atomjoy/marker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomjoy%2Fmarker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29121765,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T10:47:47.471Z","status":"ssl_error","status_checked_at":"2026-02-05T10:45:08.119Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-11-10T13:37:30.706Z","updated_at":"2026-02-05T12:32:02.767Z","avatar_url":"https://github.com/atomjoy.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Znaczniki | Markers Google Maps JavaScript API\nJak ustawić znacznik w Google Maps? Mapa Google z własnym znacznikiem z ikoną z pliku .png oraz wyskakującym okienkiem w html. Prosta mapa google.\n\n## Przykłady\n\n```sh\n# Style\ngoogle-map-marker-styles.html\n\n# Kilka znaczników\ngoogle-map-marker.html\n\n# Marker image\nhttps://raw.githubusercontent.com/atomjoy/marker/main/google-marker.png\n```\n\n## Kod mapy\n\n- \u003chttps://developers.google.com/maps/documentation/javascript/examples/marker-simple\u003e\n- \u003chttps://developers.google.com/maps/documentation/javascript/markers?hl=pl\u003e\n- \u003chttps://spatialized.io/advanced-google-maps-markers-definitive-guide-94c5a070615e436ab0a255b9f5100a88\u003e\n\n```html\n\u003chtml\u003e\n\t\u003chead\u003e\n\t\t\u003ctitle\u003eSimple Map\u003c/title\u003e\n\t\t\u003c!-- Old google map --\u003e\n\t\t\u003cscript src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyB41DRUbKWJHPxaFjMAwdrzWzbVKartNGg\u0026callback=initMap\u0026v=weekly\" defer\u003e\u003c/script\u003e\n\n\t\t\u003c!-- \u003clink rel=\"stylesheet\" type=\"text/css\" href=\"./style.css\" /\u003e\n\t\t\u003cscript type=\"module\" src=\"./index.js\"\u003e\u003c/script\u003e --\u003e\n\n\t\t\u003cscript\u003e\n\t\t\t// Map\n\t\t\tlet map = null\n\t\t\t// Google map\n\t\t\tfunction initMap() {\n\t\t\t\tmap = new google.maps.Map(document.getElementById('map'), {\n\t\t\t\t\tcenter: { lat: -33.95, lng: 151.256944 },\n\t\t\t\t\tzoom: 11,\n\t\t\t\t\tmapTypeId: google.maps.MapTypeId.ROADMAP,\n\t\t\t\t\tdisableDefaultUI: true,\n\t\t\t\t\t// Map controls\n\t\t\t\t\tpanControl: true,\n\t\t\t\t\tzoomControl: true,\n\t\t\t\t\tmapTypeControl: true,\n\t\t\t\t\tscaleControl: true,\n\t\t\t\t\tstreetViewControl: true,\n\t\t\t\t\toverviewMapControl: true,\n\t\t\t\t\trotateControl: true,\n\t\t\t\t})\n\n\t\t\t\tsetMarkers(map)\n\t\t\t}\n\n\t\t\tfunction infoWindow(marker) {\n\t\t\t\tconst contentString = '\u003cdiv id=\"content\" style=\"display: inline-block;\"\u003eMy Text comes here\u003c/div\u003e'\n\n\t\t\t\tconst infowindow = new google.maps.InfoWindow({\n\t\t\t\t\tcontent: contentString,\n\t\t\t\t\tariaLabel: 'Info Label Here',\n\t\t\t\t\tmaxWidth: 400,\n\t\t\t\t\t// anchor: marker, // Show infowindow on load\n\t\t\t\t})\n\n\t\t\t\tmarker.addListener('click', () =\u003e {\n\t\t\t\t\tinfowindow.setPosition(new google.maps.LatLng(marker.position.lat(), marker.position.lng()))\n\t\t\t\t\tconsole.log('Marker click', marker.position.lat(), marker.position.lng(), infowindow.position.lng())\n\t\t\t\t\tinfowindow.open({\n\t\t\t\t\t\tanchor: marker,\n\t\t\t\t\t\tmap,\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t}\n\n\t\t\t// Data for the markers consisting of a name, a LatLng and a zIndex for the\n\t\t\t// order in which these markers should display on top of each other.\n\t\t\tconst beaches = [\n\t\t\t\t// ['Bondi Beach', -33.890542, 151.274856, 4],\n\t\t\t\t// ['Coogee Beach', -33.923036, 151.259052, 5],\n\t\t\t\t// ['Cronulla Beach', -34.028249, 151.157507, 3],\n\t\t\t\t// ['Manly Beach', -33.80010128657071, 151.28747820854187, 2],\n\t\t\t\t['Maroubra Beach', -33.95, 151.256944, 1],\n\t\t\t]\n\n\t\t\tfunction setMarkers(map, cb = null) {\n\t\t\t\t// Adds markers to the map.\n\t\t\t\tconst image = {\n\t\t\t\t\t// url: 'https://developers.google.com/maps/documentation/javascript/examples/full/images/beachflag.png',\n\t\t\t\t\turl: 'https://raw.githubusercontent.com/atomjoy/marker/main/google-marker.png',\n\t\t\t\t\t// This marker image is 256 pixels wide by 256 pixels high.\n\t\t\t\t\tsize: new google.maps.Size(256, 256),\n\t\t\t\t\t// Scaled size will be 100px x 100px\n\t\t\t\t\tscaledSize: new google.maps.Size(40, 40),\n\t\t\t\t\t// The origin for this image is (0, 0).\n\t\t\t\t\torigin: new google.maps.Point(0, 0),\n\t\t\t\t\t// The anchor for this image is the base of the flagpole at (0, 32).\n\t\t\t\t\tanchor: new google.maps.Point(20, 20),\n\t\t\t\t}\n\t\t\t\t// Shapes define the clickable region of the icon. The type defines an HTML\n\t\t\t\t// \u003carea\u003e element 'poly' which traces out a polygon as a series of X,Y points.\n\t\t\t\t// The final coordinate closes the poly by connecting to the first coordinate.\n\t\t\t\tconst shape = {\n\t\t\t\t\tcoords: [1, 1, 1, 20, 18, 20, 18, 1],\n\t\t\t\t\ttype: 'poly',\n\t\t\t\t}\n\n\t\t\t\tfor (let i = 0; i \u003c beaches.length; i++) {\n\t\t\t\t\tconst beach = beaches[i]\n\n\t\t\t\t\t// Add marker\n\t\t\t\t\tlet marker = new google.maps.Marker({\n\t\t\t\t\t\tposition: { lat: beach[1], lng: beach[2] },\n\t\t\t\t\t\tmap,\n\t\t\t\t\t\ticon: image,\n\t\t\t\t\t\tshape: shape,\n\t\t\t\t\t\ttitle: beach[0],\n\t\t\t\t\t\tzIndex: beach[3],\n\t\t\t\t\t})\n\n\t\t\t\t\tinfoWindow(marker)\n\n\t\t\t\t\t// Remove marker example\n\t\t\t\t\t// marker.setMap(null);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\twindow.initMap = initMap\n\t\t\u003c/script\u003e\n\t\t\u003cstyle\u003e\n\t\t\t#map {\n\t\t\t\theight: 500px;\n\t\t\t}\n\n\t\t\thtml,\n\t\t\tbody {\n\t\t\t\theight: 100%;\n\t\t\t\tmargin: 0;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\t.gm-style-iw-t {\n\t\t\t\tright: 0px !important;\n\t\t\t}\n\t\t\u003c/style\u003e\n\t\u003c/head\u003e\n\t\u003cbody\u003e\n\t\t\u003cdiv id=\"map\"\u003e\u003c/div\u003e\n\t\u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Zdjęcia\n\n\u003cimg src=\"https://raw.githubusercontent.com/atomjoy/marker/main/mapa.png\" width=\"100%\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/atomjoy/marker/main/mapa-google.png\" width=\"100%\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomjoy%2Fmarker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatomjoy%2Fmarker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomjoy%2Fmarker/lists"}