kadoshms / react-jvectormap

A react wrapper for jvectormap maps
MIT License
98 stars 70 forks source link

markerLabelStyle needs to be added inside IVectorMapProps interface #149

Open reyys opened 3 weeks ago

reyys commented 3 weeks ago

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch @react-jvectormap/core@1.0.4 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/@react-jvectormap/core/.DS_Store b/node_modules/@react-jvectormap/core/.DS_Store
new file mode 100644
index 0000000..c88a062
Binary files /dev/null and b/node_modules/@react-jvectormap/core/.DS_Store differ
diff --git a/node_modules/@react-jvectormap/core/dist/types.d.ts b/node_modules/@react-jvectormap/core/dist/types.d.ts
index f0af753..4dfcf47 100644
--- a/node_modules/@react-jvectormap/core/dist/types.d.ts
+++ b/node_modules/@react-jvectormap/core/dist/types.d.ts
@@ -181,6 +181,7 @@ export interface IVectorMapProps extends IMapComponent {
     selectedMarkers?: string[] | {
         [region: string]: boolean;
     } | string;
+    markerLabelStyle?: any
     /**
      * Set the styles for the map's markers. Any parameter suitable for regionStyle could be used as well as numeric parameter r to set the marker's radius.
      */

This issue body was partially generated by patch-package.