Skip to content

Commit

Permalink
feat: Marker details info, not styled
Browse files Browse the repository at this point in the history
  • Loading branch information
purplebugs committed Jul 16, 2024
1 parent 64c67cb commit c55a70f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/alpaca-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,6 @@ export default class AlpacaMap extends LitElement {
this.map.setMapTypeId("styled_map");

// Add markers to the map

function toggleHighlight(markerView, farm) {
if (markerView.content.classList.contains("highlight")) {
markerView.content.classList.remove("highlight");
Expand All @@ -408,7 +407,14 @@ export default class AlpacaMap extends LitElement {
<div class="count">${farm?.count?.alpacas?.status?.active} 🦙</div>
</div>
<div class="details">TO DO : Fill out details - Onclick show Farm details Onclick show Farm details Onclick show Farm details</div>
<div class="details">
<h4>${farm?.name}</h4>
${farm?.city}
<address>${farm?.location?.google?.formatted_address}</address>
<address>
<a href="${farm?.location?.google?.directions_url_href}" target="_blank" rel="noreferrer" title="Google directions">Directions</a>
</address>
</div>
`;

return content;
Expand Down

0 comments on commit c55a70f

Please sign in to comment.