Skip to content

Commit 0bd8740

Browse files
committed
fix(maps): fixed maps grid position
1 parent 03ede12 commit 0bd8740

File tree

5 files changed

+43
-24
lines changed

5 files changed

+43
-24
lines changed

src/app/pages/maps/google/maps-google.component.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@ import { Component } from '@angular/core';
55
templateUrl: './maps-google.template.html',
66
styles: [`
77
.content-map {
8-
position: absolute;
9-
top: 0;
10-
bottom: 0;
11-
left: 0;
12-
right: 0;
13-
height: 100%;
8+
width: 100%;
9+
height: 60vh;
1410
}
1511
`]
1612
})
Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
1-
<agm-map [latitude]="lat" [longitude]="lng" [zoom]="zoom" class="content-map">
2-
<agm-marker [latitude]="lat" [longitude]="lng" [markerDraggable]="true">
3-
</agm-marker>
4-
</agm-map>
1+
<ol class="breadcrumb">
2+
<li class="breadcrumb-item">YOU ARE HERE</li>
3+
<li class="breadcrumb-item active">Google Maps</li>
4+
</ol>
55
<h1 class="page-title">Google <span class="fw-semi-bold">Maps</span></h1>
6+
<div class="row">
7+
<div class="col-lg-10">
8+
<widget
9+
class="mb-xlg"
10+
[title]="'<h5>Vue Google Maps <small class=text-muted>Default and customized</small></h5>'"
11+
[close]="true"
12+
[collapse]="true"
13+
[customHeader]="true"
14+
>
15+
<agm-map [latitude]="lat" [longitude]="lng" [zoom]="zoom" class="content-map">
16+
<agm-marker [latitude]="lat" [longitude]="lng" [markerDraggable]="true">
17+
</agm-marker>
18+
</agm-map>
19+
</widget>
20+
</div>
21+
</div>
22+

src/app/pages/maps/maps.module.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { AgmCoreModule } from '@agm/core';
1111

1212
import { MapsGoogleComponent } from './google/maps-google.component';
1313
import { MapsVectorComponent } from './vector/maps-vector.component';
14+
import {NewWidgetModule} from "../../layout/new-widget/widget.module";
1415

1516
export const routes = [
1617
{path: '', redirectTo: 'google', pathMatch: 'full'},
@@ -32,8 +33,9 @@ export const routes = [
3233
ButtonsModule.forRoot(),
3334
BsDropdownModule.forRoot(),
3435
AgmCoreModule.forRoot({
35-
apiKey: 'AIzaSyDe_oVpi9eRSN99G4o6TwVjJbFBNr58NxE'
36-
})
36+
apiKey: 'AIzaSyB7OXmzfQYua_1LEhRdqsoYzyJOPh9hGLg'
37+
}),
38+
NewWidgetModule
3739
]
3840
})
3941
export class MapsModule {
Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
<div class="content-map vector-map">
2-
</div>
31
<header class="page-title">
42
<h1 class="m-0 mb-sm">Vector <span class="fw-semi-bold">Maps</span></h1>
5-
<p class="page-title fs-sm m-0">
6-
<span class="fw-semi-bold">1 656 843</span>
7-
<span class="ml-xs circle bg-gray"><i class="text-gray-lighter fa fa-circle"></i></span>
8-
</p>
93
</header>
4+
<div class="row">
5+
<div class="col-lg-10">
6+
<widget
7+
class="mb-xlg"
8+
[title]="'<h5>Vue Vector Maps <small class=text-muted>Default and customized</small></h5>'"
9+
[close]="true"
10+
[collapse]="true"
11+
[customHeader]="true"
12+
>
13+
<div class="content-map vector-map">
14+
</div>
15+
</widget>
16+
</div>
17+
</div>
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
.content-map {
2-
position: absolute;
3-
top: 0;
4-
bottom: 0;
5-
left: 0;
6-
right: 0;
7-
height: 100%;
2+
width: 100%;
3+
height: 400px;
84
}

0 commit comments

Comments
 (0)