I need to add a feature to get a list of grouped markers by the marker clusterer of this package: https://www.npmjs.com/package/@agm/markerclusterer
Currently - there is no such ability and it seems that the repo is not updated for a long time.
I have forked the github repo from here:
https://github.com/SebastianM/angular-google-maps
Then I have made a commit of the required changes:
And now - I am unable to use it.
Because, when I install the dependency via npm instll neverlose-lv/angular-google-maps
command - the dependency is installed as the source code of the github repo, but to work - it should be the build files (dist/
directory I guess. The result of npm run build:prod
) command.
I am unable to publish the repo via npm publish
command.
I get an error: npm ERR! Cannot read properties of undefined (reading 'trim')
I have tried to make a build:
npm install
npm run build:prod
The build succeeded with some warnings. Then I commited the build files to another repo:
https://github.com/neverlose-lv/markerclusterer-dist
And when I try to use it (npm install neverlose-lv/markerclusterer-dist
) - I get dependency errors, which are listed in the peerDependencies
directive.
So far I did myself...
I would like to know how can I correctly for and use this package ?