Skip to content

Commit

Permalink
Merge pull request #5 from aprilmay/master
Browse files Browse the repository at this point in the history
Rename css class. 
Fixes #4
  • Loading branch information
HarelM authored Jul 4, 2021
2 parents e217b68 + 17bb1aa commit f327846
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@stackblitz/sdk": "^1.3.0",
"@types/geojson": "^7946.0.7",
"lodash-es": "^4.17.11",
"maplibre-gl": "1.14.1-rc.1",
"maplibre-gl": "1.15.0",
"ngx-md": "^8.0.0",
"rxjs": "^6.6.6",
"scroll-into-view-if-needed": "^2.2.20",
Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-maplibre-gl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"peerDependencies": {
"@angular/common": ">= 9.0.0 < 12.0.0",
"@angular/core": ">= 9.0.0 < 12.0.0",
"maplibre-gl": ">= 1.14.0",
"maplibre-gl": ">= 1.15.0",
"rxjs": "^6.6.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class CustomControl implements IControl {
@Component({
selector: 'mgl-control',
template:
'<div class="mapboxgl-ctrl" #content><ng-content></ng-content></div>',
'<div class="maplibregl-ctrl" #content><ng-content></ng-content></div>',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ControlComponent<T extends IControl>
Expand Down
4 changes: 2 additions & 2 deletions projects/showcase-e2e/src/popup.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ describe('Popup', () => {
const canvas = element(by.tagName('canvas'));
await browser.wait(EC.presenceOf(canvas), 2000);

const popup = element(by.className('mapboxgl-popup'));
const popup = element(by.className('maplibregl-popup'));
await browser.wait(EC.presenceOf(popup), 1000);
const popupClasses = popup
.getAttribute('class')
.then((c) => c.split(' ').filter((c) => c.length > 0));
expect(popupClasses).toContain('custom-popup-class1');
expect(popupClasses).toContain('custom-popup-class2');

const popupContent = element(by.className('mapboxgl-popup-content'));
const popupContent = element(by.className('maplibregl-popup-content'));
await browser.wait(EC.presenceOf(popupContent), 1000);
expect(popupContent.element(by.tagName('div')).getText()).toBe(
'Hello world !'
Expand Down

0 comments on commit f327846

Please sign in to comment.