add avoidOuterPins support

This commit is contained in:
8to
2020-11-04 15:26:20 -06:00
parent b72ea10108
commit 2cd9a0727e
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -50,6 +50,7 @@ const map = new DottedMap({
countries: ['FRA'] // look into `countries.geo.json` to see which keys to use. You can also omit this parameter and the whole world will be used
region: { lat: { min, max }, lng: { min, max } }, // if not present, it will fit the countries (and if no country is specified, the whole world)
grid: 'vertical' | 'diagonal', // how points should be aligned
avoidOuterPins: false | true, // if it's true, prevent adding pins when they are outside of region/countries
});
// Add some points/change the color of existing points