{"_id":"@agriclime/ngx-leaflet-locate","_rev":"6-2559bacf52300b168bdea16ca035eb17","time":{"created":"2022-10-20T08:01:12.089Z","2.0.4":"2022-10-20T07:49:01.864Z","modified":"2022-10-21T15:02:49.368Z","2.0.5":"2022-10-20T08:01:12.396Z","2.0.6":"2022-10-20T08:34:41.094Z","2.0.7":"2022-10-21T14:58:46.791Z","2.0.8":"2022-10-21T15:02:49.282Z"},"name":"@agriclime/ngx-leaflet-locate","dist-tags":{"latest":"2.0.8"},"versions":{"2.0.5":{"name":"@agriclime/ngx-leaflet-locate","version":"2.0.5","description":"Angular Wrapper for the Leaflet Location Control","keywords":["angular","leaflet","control","locate","locatecontrol","leaflet.locatecontrol"],"homepage":"https://github.com/runette/ngx-leaflet-locate","bugs":{"url":"https://github.com/runette/ngx-leaflet-locate/issues"},"licence":"MIT","peerDependencies":{"@angular/common":">=12.0.0","@angular/core":">=12.0.0"},"dependencies":{"@types/leaflet.locatecontrol":"^0.74.0","leaflet.locatecontrol":"^0.76.1"},"devDependencies":{"@angular/common":"^12.0.0","@angular/core":"^12.0.0","@angular/cli":"^12.0.0","ng-packagr":"^12.0.0","@angular-devkit/build-angular":"^12.0.0"},"scripts":{"build:prod":"ng build ngx-leaflet-locate"},"repository":{"type":"git","url":"git+https://github.com/neldrak/ngx-leaflet-locate.git"},"gitHead":"115d5193833a55097391ffd0b50759493537559c","_id":"@agriclime/ngx-leaflet-locate@2.0.5","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"integrity":"sha512-yEqED9HJ+wXFEfrlGnDtIzNGw78srW+PYWSD5Dc6sGehAA7pGKwRs1T3vLDnpQc3Hyh46oBvET66EHE4xOh04g==","shasum":"687b362c8cba5c5a6917c2f511d6d9e2d53fd645","tarball":"https://registry.npmjs.org/@agriclime/ngx-leaflet-locate/-/ngx-leaflet-locate-2.0.5.tgz","fileCount":13,"unpackedSize":12848,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICX2jsp4XJPRVQlLDCzDmKsh5repJbN2goC6tRPYGsnjAiAZeldFl/FP3IL2OFH6S+rsmEX3v74wIyY0pbrgSiGuNA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUQBIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmohZw//XjwCQT7YKl5Z5ZmgqMKG6F/iBuc/1YO/hOqIkfwA+lDrbSCV\r\nN9iJbaSOBUY6TQM69bc2Dx5gqVc15Js902zdWbZdzHcM7S+uPBynm8tiPh6o\r\ngf2Ztz6bmZ26yS6Fe83VTTC/K4S0NXyhkgYzxZpYRpuiAJTm/akr1fOrX69A\r\nk+wPGj58irfzidPbWOsz/2ax5j/VouDkGLuXI1PttOzQuqmIfwyO1cAQ5VoJ\r\nLIZqjynYE7T7b8zAbIrHUobRT2KksVJCnMRc0HPtCqRMrvQWnA5iq+O6CZ0K\r\nnbOyKG89BINas8JC5bFX/qa8sGOGY+3jya215RIEFGFO905b5agslr1SAkLf\r\nT5Qg5/2xLi7voo5LZZhX1JTQphb6jQPd8SWU78m4yd+0wOgO0MMyHzFgAWXv\r\nep/tLWci/8sK2iK8WW/q5si3wZFhOjimgZq5xJmu94n0Nzmdx0IzNqZSyglh\r\ntf+C4WRODuHQ4imYljNJFqNpy1MnZYbF9U0ocQrf1req+j6MSAfp0AmN/K3I\r\nCJg5D56YPbPjDgc2wC8z3qVVPiCqKSwQaTHOZSHW/USWfTmIn44apqabUnL2\r\nfM+hVG/UsxfTCx315Q72uBl/K3DcPXIsdvUGaw7YrWLDDwaJ+9TE5vGoFNxV\r\n1D0eAQlhZSwUq5YIWcvJsvTWC9Xi3hVQRQI=\r\n=2JCB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"neldrak","email":"neldrak@gmail.com"},"directories":{},"maintainers":[{"name":"neldrak","email":"neldrak@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ngx-leaflet-locate_2.0.5_1666252872146_0.8386877836131714"},"_hasShrinkwrap":false},"2.0.6":{"name":"@agriclime/ngx-leaflet-locate","version":"2.0.6","description":"Angular Wrapper for the Leaflet Location Control","keywords":["angular","leaflet","control","locate","locatecontrol","leaflet.locatecontrol"],"homepage":"https://github.com/runette/ngx-leaflet-locate","bugs":{"url":"https://github.com/runette/ngx-leaflet-locate/issues"},"licence":"MIT","peerDependencies":{"@angular/common":">=12.0.0","@angular/core":">=12.0.0"},"dependencies":{"@types/leaflet.locatecontrol":"^0.74.0","leaflet.locatecontrol":"^0.76.1","tslib":"^2.2.0"},"repository":{"type":"git","url":"git+https://github.com/neldrak/ngx-leaflet-locate.git"},"main":"bundles/agriclime-ngx-leaflet-locate.umd.js","module":"fesm2015/agriclime-ngx-leaflet-locate.js","es2015":"fesm2015/agriclime-ngx-leaflet-locate.js","esm2015":"esm2015/agriclime-ngx-leaflet-locate.js","fesm2015":"fesm2015/agriclime-ngx-leaflet-locate.js","typings":"agriclime-ngx-leaflet-locate.d.ts","sideEffects":false,"gitHead":"115d5193833a55097391ffd0b50759493537559c","_id":"@agriclime/ngx-leaflet-locate@2.0.6","_nodeVersion":"14.15.4","_npmVersion":"8.19.2","dist":{"integrity":"sha512-71SWvoKKbTXMpp5uCAZY7bmfOrPzYrAi2zuherbd8zoNqaqJYorMePV0SI2cgbUpJZ4m9MiDn8iHLmhC9dPKKw==","shasum":"dc63398584325cac429ad26c2780f47b591390be","tarball":"https://registry.npmjs.org/@agriclime/ngx-leaflet-locate/-/ngx-leaflet-locate-2.0.6.tgz","fileCount":15,"unpackedSize":191351,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICAC89VPJX3gO6z2bxhxQSyxtX/X6CKiL1NfpKF57FeoAiEAr9A1pboF/o5XcjIqx2ugwa+B57KWJgC+vyCkihYPuT4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUQghACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1vA//ZEhEcIpxFcGMzfsm1HUJwLMYvGwLNo3oLPZxLuzW/FQwBRWb\r\n4daxWx5icvh0X1UPzVCbAlELF6vxwqRzLJ7HII+RgrZjpOC/pskLeE98MdxT\r\nYrTHv1W/PBpmfPGKTuT4ZnnSg4l7WYHGrM03pp9L1Z1+3Odb8Xz0N3y14hf7\r\nASVxSNh6mSE8sDk7XZ+VF2wSuxzV3iwEJ4VjP+2r1SVa5YR2jSBrz0vSzD9j\r\nskO0tQIXWDs2ayk/z/s/f+lBM0ZRRiyM1ehM/n/rExZbPoVZLC7ebvrS40Hg\r\nKgTB0pQlxIuFWPp4RB4OXeQTMkmp0+8NiiBbKk+c5blfqLArB7k4ubDO52fe\r\nQaHhq4fADaZ7DzFPdHDUkm2xayg+ZabEyEs5ThxtExUXT+2qJLehDhEpWS8X\r\nVFSbGrVWE8fHeVPrY2FVPW0jyuVjMqe8/0FMeJ6UKpsGZrP5bgKyeczftzFk\r\nQofztvhSKhry/LfXY6JBYsTvC81y5FwEEr+NBIXq+tw0teoRxhUNDRC45TKN\r\nk44WXirfrxZuwy90r+azzC5YJUaAyIigMWFeQnk3+8QJGdvKQA7urhg4oZnr\r\nAebBOaoVNoECwanjJE9wFVJ7OfqYH+lhu4T2eQjlGuAfCqDSiQ/zu2lpR8KS\r\nnnZRVjf99JVj56ZpmfEbPposwpt4jW+6Ipg=\r\n=ZxUw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"neldrak","email":"neldrak@gmail.com"},"directories":{},"maintainers":[{"name":"neldrak","email":"neldrak@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ngx-leaflet-locate_2.0.6_1666254880864_0.4625130247937479"},"_hasShrinkwrap":false},"2.0.7":{"name":"@agriclime/ngx-leaflet-locate","version":"2.0.7","description":"Angular Wrapper for the Leaflet Location Control","keywords":["angular","leaflet","control","locate","locatecontrol","leaflet.locatecontrol"],"homepage":"https://github.com/runette/ngx-leaflet-locate","bugs":{"url":"https://github.com/runette/ngx-leaflet-locate/issues"},"licence":"MIT","peerDependencies":{"@angular/common":">=12.0.0","@angular/core":">=12.0.0"},"dependencies":{"@types/leaflet.locatecontrol":"^0.74.0","leaflet.locatecontrol":"^0.76.1"},"devDependencies":{"@angular/common":"^12.0.0","@angular/core":"^12.0.0","@angular/cli":"^12.0.0","ng-packagr":"^12.0.0","@angular-devkit/build-angular":"^12.0.0"},"scripts":{"build:prod":"ng build ngx-leaflet-locate"},"repository":{"type":"git","url":"git+https://github.com/neldrak/ngx-leaflet-locate.git"},"gitHead":"115d5193833a55097391ffd0b50759493537559c","_id":"@agriclime/ngx-leaflet-locate@2.0.7","_nodeVersion":"14.15.4","_npmVersion":"8.19.2","dist":{"integrity":"sha512-WTpzIG96d/Hq5i/n28hK4dFy515u+7CKMXXAu9O69Z8E9CNBpZ0jHVI7+LCj+NljIg+6lU71FVmVFjGyDJ0zlg==","shasum":"eb3f5c34b3ff02adf5795cac924400a391a58b4b","tarball":"https://registry.npmjs.org/@agriclime/ngx-leaflet-locate/-/ngx-leaflet-locate-2.0.7.tgz","fileCount":13,"unpackedSize":12962,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIESQDaXdvWFOAbDMg6k3jzpV14qvG89WvtQc1BcUqo5rAiBl+8Sae0JkOQOAgeB/5YUltg4yn3Ce2ZjK1lx/UQAfUg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUrOmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpUSw/8C5oif2CIEocZajzfX6p28tizgF6Abqee6CDCB1p1RH96Z/A0\r\n3K4Kc/vYI+vLw/zSJY/Sl/hEElopqrfqP2fH897/pGBXk/9c9ePk2k+PGq0E\r\nQLinxRKMnoLXzKRhqfUgDntQwyRwDRTsvRWvkS4SDXfnVqahBQCFk4bp8z0A\r\nGREKrIzqf+XXotvU8+uKg6uxzjgW2rj8f/URT142yiWnKt33bx/Q8gtkkuWu\r\nNSpk7L+qfMk3VqWX6vykNXP7xqcv1yLa7fjsd6Kw99I5be4DrOoQ2gYu9PP2\r\nNifiW8kpr2RzeVgZ0qw2tlQlnKEVfc/Acl78TH7X7s1XTW6nKuGonqMPTxaw\r\n8WuADJad2Y1KyCH2VXL7CVFQCUtqYBw6BfWKRnPDlVY/hHRA7ZThyz59Igag\r\n7jd82uZDZd2K35Gu5ElxsnjEdqvQIaotwEQN1JKMOe+I3SM6GwD46NdP6JIz\r\nlD6Dg2jQtVtPR+KKjoe/AorW3aVbREPQDdacgjCfKUCOqgAnaUNXoH5lxbBX\r\nD1cFnHptMCZ5xYxOoJoBNsAVuudViDms1ffF13nKB1iK0YKB5SUSTxcYLFyT\r\nWWewlT+jdmUmdf53wSLiO7T/AWGuWAtuIWe2Fd918WpEWmrV8mr1GfE6AtI1\r\nVwB7oFFKvYpR5o/UI703hBTowHKpj0UWE0c=\r\n=Tbcu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"neldrak","email":"neldrak@gmail.com"},"directories":{},"maintainers":[{"name":"neldrak","email":"neldrak@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ngx-leaflet-locate_2.0.7_1666364326669_0.18473482867803548"},"_hasShrinkwrap":false},"2.0.8":{"name":"@agriclime/ngx-leaflet-locate","version":"2.0.8","description":"Angular Wrapper for the Leaflet Location Control","keywords":["angular","leaflet","control","locate","locatecontrol","leaflet.locatecontrol"],"homepage":"https://github.com/runette/ngx-leaflet-locate","bugs":{"url":"https://github.com/runette/ngx-leaflet-locate/issues"},"licence":"MIT","peerDependencies":{"@angular/common":">=12.0.0","@angular/core":">=12.0.0"},"dependencies":{"@types/leaflet.locatecontrol":"^0.74.0","leaflet.locatecontrol":"^0.76.1","tslib":"^2.2.0"},"repository":{"type":"git","url":"git+https://github.com/neldrak/ngx-leaflet-locate.git"},"main":"bundles/agriclime-ngx-leaflet-locate.umd.js","module":"fesm2015/agriclime-ngx-leaflet-locate.js","es2015":"fesm2015/agriclime-ngx-leaflet-locate.js","esm2015":"esm2015/agriclime-ngx-leaflet-locate.js","fesm2015":"fesm2015/agriclime-ngx-leaflet-locate.js","typings":"agriclime-ngx-leaflet-locate.d.ts","sideEffects":false,"gitHead":"115d5193833a55097391ffd0b50759493537559c","_id":"@agriclime/ngx-leaflet-locate@2.0.8","_nodeVersion":"14.15.4","_npmVersion":"8.19.2","dist":{"integrity":"sha512-55arrccKloZq/2FF0mBP+PdXWiZ5CMvK9On23b1Z0UmfhfBLI8OHwo+LJjB445saOsyy/vEG1u88IKZwVpaJ5g==","shasum":"5261ca68d12cd2d7be7c691a31e73cd683b02fa3","tarball":"https://registry.npmjs.org/@agriclime/ngx-leaflet-locate/-/ngx-leaflet-locate-2.0.8.tgz","fileCount":15,"unpackedSize":192702,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE0xOblXdMV/wLDHOdIZ+2QLMCjE011LSdSthFmO/7DlAiEA33qFDVTLxcsj/4+DqRSQR8mnCiI0eWqnideuTu5ZIwo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUrSZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoEEA//VP+RKum+Pl14lgKPFjYy4MLuZ+zW9ugLBuIIyt72JGOoXUnR\r\n38PMlKEF4RUe/pAt9ruotDX/hTjWnUZam27H6svjaOqox7b/GcCPGVO+mCZW\r\n6b1FPfwkb4FlB2CNO31GlP3I+qL+kr5KPeb84vRMKqnR83Ew4LuFZOs0pX1R\r\nQ8EL5jBiH09Qc1Vx6gm1R71eCx07ylOZ+/U4fUQnoFHUf6VIMiQzBvPy1y68\r\nm1v445ttCxceDDBiTUXDsvGoLCzFj/oITZ4Q9n/OzLUb+v5NW2OnL2vDazQ8\r\n3o0/IWg2VeNR86C3IYazZYcaWgjbQHj6KzIi7Up+LPbw9el+i1zBCBX9+wly\r\nkB1qgIQbaLobae44OGdVoR0JJ8v2d99WUIwweHSW3ERrzgnHJdgJlrloG50Q\r\n+c5w4PzEfe82bBF+AMITQUAltecrFhtgeX3otQfhkusM7tu3dlocFNMGvpim\r\npZt2rChhhOVWmk8tPmeMmrd5WAd5dQvcWKmYYy/264NJXvDdl26t4CAYyCy1\r\nx2GlzOL8/+vkzCznnVKDMhN0xCwU6HtgMdc4brBLsgwImpOK/ql3OrQ1nBrw\r\npZ96/V7cZQ2HDK/MvStdFXMrIAXoApzcCIr4Q0iS6TI/J1ZU61Ac5cwsrqvh\r\n9xk2MmGCpgRp1SGt93TMzZ5ODO1ermUqjGU=\r\n=BcYH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"neldrak","email":"neldrak@gmail.com"},"directories":{},"maintainers":[{"name":"neldrak","email":"neldrak@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ngx-leaflet-locate_2.0.8_1666364569033_0.17365646686057978"},"_hasShrinkwrap":false}},"maintainers":[{"name":"neldrak","email":"neldrak@gmail.com"}],"description":"Angular Wrapper for the Leaflet Location Control","homepage":"https://github.com/runette/ngx-leaflet-locate","keywords":["angular","leaflet","control","locate","locatecontrol","leaflet.locatecontrol"],"repository":{"type":"git","url":"git+https://github.com/neldrak/ngx-leaflet-locate.git"},"bugs":{"url":"https://github.com/runette/ngx-leaflet-locate/issues"},"readme":"# NGX-Leaflet-Locate\r\n\r\n>\r\n>WARNING - This is a Fork of runette/ngx-leaflet-locate\r\n>\r\n\r\nThis is a wrapper for the [Leaflet.locatecontrol](https://github.com/domoritz/leaflet-locatecontrol) to make it easy to use in Angular 8+.\r\n\r\nThis wrapper is tested against the [@asymmetrik/ngx-leaflet](https://github.com/Asymmetrik/ngx-leaflet) library but it has no dependency on that library so *should* work without it. It does, obviously, have a dependency that leaflet is loaded.\r\n\r\nFor more detailed descriptions of how this wrapper was created : [Documentation](https://runette.gitbook.io/alcm/).\r\n\r\nFor detailed descriptions of how to use and worked examples : [Article](https://medium.com/runic-software/quick-guide-to-leaflet-controls-in-angular-io-1b35d0807bdb), [Article](https://medium.com/runic-software/advanced-interactive-maps-in-angular-with-leaflet-68baafa03f72)\r\n\r\nFor an example of this working in a real site - see [trackbash](https://trackbash.co.uk).\r\n\r\n# Install\r\n\r\nInstall using npm:\r\n\r\n```\r\nnpm install @runette/ngx-leaflet-locate\r\n```\r\n\r\nNote that from version 2.0.1, this library is built using a partial Ivy compilation and should work with any version of Angular.io after version 12.0.0\r\n\r\n# Usage\r\n\r\nThis library needs to be imported into the application module:\r\n\r\n```\r\nimport {NgxLeafletLocateModule} from '@runette/ngx-leaflet-locate'\r\n\r\nimports: [\r\n    ...\r\n    NgxLeafletLocateModule,\r\n  ],\r\n```\r\n\r\nThen, the control is inserted using the following directive:\r\n\r\n```\r\n<leaflet-locate-control \r\n    [map]=\"...\"\r\n    [options]=\"...\"\r\n    (location$)=\"...($event)\"\r\n    ></leaflet-locate-control>\r\n```\r\n\r\nWhere `map` is an instance of a leaflet map a, `options` is an object with valid options for the control and `location$` is a function to call when there is a new location event.\r\n\r\n# Usage with NGX-Leaflet\r\n\r\nThis library integrates very easily with ngx-leaflet using the onMapReady event:\r\n\r\n```\r\n<div id='map' class=\"map-container\" leaflet\r\n     [leafletOptions]=\"options\"\r\n     (leafletMapReady)=\"onMapReady($event)\"\r\n     ></div>\r\n<leaflet-locate-control \r\n    [map]=\"map\"\r\n    [options]=\"locateOptions\"\r\n    (location$)=\"onNewLocation($event)\"\r\n    ></leaflet-locate-control>\r\n```\r\nby adding the following to your map component (note - the locateOptions are only an example - choose your own options:\r\n\r\n```\r\n...\r\n/// <reference types=\"leaflet.locatecontrol\" />\r\nimport { latLng, Map, Control, LocationEvent } from 'leaflet';\r\n\r\n\r\nexport class OsmMapComponent implements OnInit, OnDestroy {\r\n  public map: Map;\r\n  public locateOptions:  Control.LocateOptions = {\r\n    flyTo: false,\r\n    keepCurrentZoomLevel: true,\r\n    locateOptions: {\r\n                 enableHighAccuracy: true,\r\n               },\r\n    icon: 'material-icons md-18 target icon',\r\n    clickBehavior: {inView: 'stop',\r\n                    outOfView: 'setView',\r\n                    inViewNotFollowing: 'setView'}\r\n  };\r\n  \r\n  ...\r\n  \r\n  onMapReady(map: Map) {\r\n    this.map = map;\r\n  }\r\n  \r\n  onNewLocation(e: LocationEvent){\r\n  ...some actions;\r\n}\r\n```\r\n\r\n# Usage - Location Events\r\n\r\n>\r\n>BREAKING CHANGES - from V2.0.0 the module emits native [`LocationEvent`](https://leafletjs.com/reference-1.6.0.html#locationevent) events.\r\n>The previous `Location` type no longer exists. `LocationEvent` type is defined on the leaflet module.\r\n>\r\n> This is to provide consistency and avoid data loss. The most major change is that the old `coords` property is no `latlng`\r\n>\r\n\r\nThe module listens for location found events when the control is following the device location.\r\n\r\nWhen there is a location update from the device, that update is emitted as an event to the parent component as `location$ : LocationEvent`.\r\n\r\n# Usage - CSS\r\n\r\nUnfortunately - I think because the leaflet map is run outside of Angular by ngx-leaflet - the normal css encapsulation does not work and you have to load the css globally.\r\n\r\nAdd the following to the styles.css \r\n\r\n```CSS\r\n@import \"leaflet.locatecontrol/dist/L.Control.Locate.css\";\r\n```\r\n\r\n# Build Config\r\n\r\nFor some reason yet to be found - this library does not like being built with `\"buildOptimizer\": true,` in the build environment - which is usually the default for the production environment in `angular.json`.\r\n\r\nAlways build with `\"buildOptimizer\": false,`.\r\n\r\n# API Access to the Control\r\n\r\nIf you want access the control's methods directly from your typescript code - this can be done with `@ViewChild`\r\n\r\nUse `ViewChild` to access the component, for instance \r\n\r\n```ts\r\n@ViewChild(NgxLeafletLocateComponent,{static: false}) locateComponent: NgxLeafletLocateComponent;\r\n```\r\n\r\nThe actual instance of the control can then be accessed directly as `this.locateComponent.control`\r\n\r\nFor more details and worked examples, see : [Article](https://medium.com/runic-software/advanced-interactive-maps-in-angular-with-leaflet-68baafa03f72)\r\n\r\n# Contributions\r\n\r\nContributions to this repository are very welcome.\r\n\r\nPlease fork the repository and create a new branch for your changes. The branch can be built locally using \r\n\r\n```\r\nng build ngx-leaflet-locate\r\n```\r\n\r\nin the root folder of the repo. This creates an npm package in a folder called `dist`. This can loaded in a test app using `npm install` and the FQ path to the dist folder.\r\n\r\nWhen your changes are complete create a Pull Requet against the master. It is IMPORTANT that you change the version number in `package.json` AND the tag number in `.github/workflowds/build.yaml` to the next version before the PR.\r\n\r\nWhen I have accepted and merged the PR, Github actions will automatically build the new package release and loaded it both as a GH release using the version as the tag name and publish the new version on npm.\r\n","readmeFilename":"README.md"}