![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@blinkmobile/angular-location
Advanced tools
Angular 1.x components for maps and geolocation
You must define a "googleMapsApiKey" property on the $rootScope
with your API key.
(function () {
'use strict'
const mod = angular.module('app', [ 'bmLocation' ])
mod.run([
'$rootScope', // minification-safe dependency-injection
($rootScope) => {
$rootScope.googleMapsApiKey = 'secret'
}
])
}())
Displays an inert map, with a pin at the desired coordinates
Uses Google's Static Maps API
Attributes:
<bm-static-location-on-map
coords='{"latitude":10,"longitude":10}'
></bm-static-location-on-map>
Displays an interactive map, with a pin at the desired coordinates
Uses Google's JavaScript Maps API
Attributes:
If "ngDisabled", then the map will not be interactive at all
If "ngReadonly", then user can pan the map, but the pin will be inert
Otherwise, the pin is interactive and the user may reposition it
This features a 1-way data-binding design, so this component notifies the parent controller / component / scope when the pin's position changes
<div ng-controller="MyController">
<bm-location-on-map
coords="coords"
on-change="onChange(value)"
></bm-location-on-map>
</div>
class MyController {
constructor () {
this.coords = { latitude: 10, longitude: 10 }
}
onChange (value) {
this.coords = value
}
}
mod.controller('MyController', MyController)
Note: in your HTML template, for your on-change handler, you must name the argument value
Displays an interactive map, with a pin at the desired coordinates
Uses Google's JavaScript Maps API
Attributes:
Field is interactive when neither "ngDisabled" or "ngReadonly" are truthy
This features a 2-way data-binding design via ngModel
<div ng-controller="MyController as $ctrl">
<bm-confirm-location-on-map
ng-model="$ctrl.coords"
></bm-confirm-location-on-map>
</div>
class MyController {
constructor () {
this.coords = { latitude: 10, longitude: 10 }
}
}
mod.controller('MyController', MyController)
npm run build
produces output in the "dist" directory
npm test
executes tests
We recommend using http-server or similar.
You may find it useful to temporarily change the Google Maps API key in the example app.js file to perform manual tests. Take care not to commit this to version control.
2.1.1 (2017-08-14)
2.1.0
not including new build filesFAQs
Angular 1.x components for maps and geolocation
The npm package @blinkmobile/angular-location receives a total of 5 weekly downloads. As such, @blinkmobile/angular-location popularity was classified as not popular.
We found that @blinkmobile/angular-location demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.