Skip to content

Commit

Permalink
Merge pull request #54 from paulnagle/version_5
Browse files Browse the repository at this point in the history
Default map location
  • Loading branch information
paulnagle authored Dec 28, 2023
2 parents bdf749e + fbcbef2 commit c46935a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/pages/map-search/map-search.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ export class MapSearchPage implements OnInit {
async createMap(): Promise<void> {
const mapRef: HTMLElement = document.getElementById('map')!;

let currentLatLng: LatLng = { lat: this.addressLatitude, lng: this.addressLongitude }
let mapLatitude: any = 34.2359855;
let mapLongitude: any = -118.5656689;
if (this.addressLatitude) { mapLatitude = this.addressLatitude }
if (this.addressLongitude) { mapLongitude = this.addressLongitude}
let currentLatLng: LatLng = { lat: mapLatitude, lng: mapLongitude }

const mapArgs = {
id: 'google-map',
Expand Down

0 comments on commit c46935a

Please sign in to comment.