Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions images/marker.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions js/lucille.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,12 @@ class Application {
if (app.map == null) {
return;
}
const zoodMarker = "./images/marker.svg";
let pos = { lat: locInfo.latitude, lng: locInfo.longitude };
// if we already have a marker for the user, update it. otherwise, build one.
if (app.marker == null) {
app.marker = new google.maps.Marker({
icon: zoodMarker,
position: pos,
map: app.map,
title: app.username
Expand Down Expand Up @@ -183,6 +185,9 @@ function initMap() {
app.map = new google.maps.Map(document.getElementById("map"), {
center: { lat: lat, lng: lng },
zoom: zoom,
zoomControlOptions: {
position: google.maps.ControlPosition.RIGHT_TOP
},
streetViewControl: false,
mapTypeControl: false,
fullscreenControl: false
Expand Down
Loading