Skip to content

Commit

Permalink
fix: remove console log + round lat/lng
Browse files Browse the repository at this point in the history
  • Loading branch information
lpernelle-woosmap committed Jan 7, 2025
1 parent fb422bb commit 47a35a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions samples/localities-search/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function fillDetailsResult(detailsResult: any) {
);
if (detailsResult.geometry) {
details.push(
`<div class='option-detail'><div><span class='option-detail-label'>Latitude:</span> <span class='bold'>${detailsResult.geometry.location.lat.toString()}</span></div><div><span class='option-detail-label'>Longitude: </span><span class='bold'>${detailsResult.geometry.location.lng.toString()}</span></div></div>`
`<div class='option-detail'><div><span class='option-detail-label'>Latitude:</span> <span class='bold'>${detailsResult.geometry.location.lat.toFixed(5).toString()}</span></div><div><span class='option-detail-label'>Longitude: </span><span class='bold'>${detailsResult.geometry.location.lng.toFixed(5).toString()}</span></div></div>`
);
if (detailsResult.address_components) {
const compoHtml = detailsResult.address_components
Expand Down Expand Up @@ -182,7 +182,6 @@ function displayResult(result: woosmap.map.localities.LocalitiesDetailsResult) {
}

function displaySuggestions(localitiesPredictions: any) {
console.log("localitiesPredictions: ", localitiesPredictions);
if (inputElement && suggestionsList) {
suggestionsList.innerHTML = "";
if (localitiesPredictions.results.length > 0 && input) {
Expand Down

0 comments on commit 47a35a1

Please sign in to comment.