diff --git a/.lintstagedrc.yml b/.lintstagedrc.yml
index a667fe09d..9616364b9 100644
--- a/.lintstagedrc.yml
+++ b/.lintstagedrc.yml
@@ -1,2 +1,2 @@
-"*.{vue,js,vue,html,js}":
+"*.{vue,js,ts,jsx,tsx}":
- "pnpm run lint"
diff --git a/packages/v3/.gitignore b/packages/v3/.gitignore
index 9b9e04d38..b356977fa 100644
--- a/packages/v3/.gitignore
+++ b/packages/v3/.gitignore
@@ -7,6 +7,7 @@ node_modules
/cypress/runner/dist
# local env files
+.env
.env.local
.env.*.local
diff --git a/packages/v3/cypress/e2e/marker-icon.cy.ts b/packages/v3/cypress/e2e/marker-icon.cy.ts
index 9440f3a0d..8c1e4f014 100644
--- a/packages/v3/cypress/e2e/marker-icon.cy.ts
+++ b/packages/v3/cypress/e2e/marker-icon.cy.ts
@@ -4,4 +4,19 @@ describe('MarkerIcon component', () => {
cy.get('button[name=marker]').click();
cy.get('.gmv-map').find('map').should('have.length', 2);
});
+
+ it('should remove all markers from the map', function () {
+ cy.visit('/');
+ cy.get('button[name=marker]').click();
+ cy.get('#visibility').click();
+ cy.get('.gmv-map').find('map').should('have.length', 0);
+ });
+
+ it('should re-add all markers on the map', function () {
+ cy.visit('/');
+ cy.get('button[name=marker]').click();
+ cy.get('#visibility').click();
+ cy.get('#visibility').click();
+ cy.get('.gmv-map').find('map').should('have.length', 2);
+ });
});
diff --git a/packages/v3/cypress/runner/components/MarkerTest.vue b/packages/v3/cypress/runner/components/MarkerTest.vue
index 407a5b9e6..21c8b1dfd 100644
--- a/packages/v3/cypress/runner/components/MarkerTest.vue
+++ b/packages/v3/cypress/runner/components/MarkerTest.vue
@@ -1,4 +1,8 @@
+
+
@@ -15,6 +20,7 @@
export default {
data() {
return {
+ visible: true,
center: {
lat: 10.0,
lng: 10.0,
@@ -35,5 +41,10 @@ export default {
],
};
},
+ computed: {
+ btnTxt() {
+ return this.visible ? 'Hide markers' : 'Show markers';
+ },
+ },
};
diff --git a/packages/v3/cypress/runner/components/PolylineTest.vue b/packages/v3/cypress/runner/components/PolylineTest.vue
index 7ec74b542..785bfdad2 100644
--- a/packages/v3/cypress/runner/components/PolylineTest.vue
+++ b/packages/v3/cypress/runner/components/PolylineTest.vue
@@ -35,6 +35,8 @@
+