-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(geo): info content on map (#979)
* feat(geo): info content on map * feat(demo): add an example of infocontent
- Loading branch information
Showing
7 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './info-section.component'; |
3 changes: 3 additions & 0 deletions
3
packages/geo/src/lib/map/info-section/info-section.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div *ngIf="infoContent && infoContent.length" class="infoSection"> | ||
<pre>{{infoContent}}</pre> | ||
</div> |
16 changes: 16 additions & 0 deletions
16
packages/geo/src/lib/map/info-section/info-section.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@import '../../../../../core/src/style/partial/media'; | ||
@import '../../../../../core/src/style/partial/core.variables'; | ||
|
||
.infoSection { | ||
border-radius: 10px; | ||
background-color: rgba(110,110,110, 0.4); | ||
padding: calc(#{$igo-margin} / 2); | ||
position: absolute; | ||
text-align: center; | ||
top: $igo-margin; | ||
left: 50%; | ||
@include mobile { | ||
top: calc(#{$igo-icon-size} + 5px + #{$igo-margin}); | ||
left: 10%; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
packages/geo/src/lib/map/info-section/info-section.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Component, Input } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'igo-info-section', | ||
templateUrl: './info-section.component.html', | ||
styleUrls: ['./info-section.component.scss'] | ||
}) | ||
export class InfoSectionComponent { | ||
|
||
@Input() infoContent: string = ''; | ||
|
||
constructor() {} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters