Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
angular-naver-maps
Advanced tools
Readme
A simple angular directive for integrating Naver Maps
Use <ng-naver-map>
for embedding a Naver map into your html
You can see a live demo here
The full Naver Map API is still unsupported, currently only the following features are supported (which should cover most use cases).
##How to use
Create a Naver map API key https://developers.naver.com/register
include
<script src="https://openapi.map.naver.com/openapi/v2/maps.js?clientId=YOURKEY"></script>
get module using bower or npm
bower install angular-naver-maps
npm install angular-naver-maps
then add it before you app.js
<script src="bower_components/angular-naver-maps/angular-naver-maps.js"></script>
<script src="node_modules/angular-naver-maps/angular-naver-maps.js"></script>
Add the module to your angular app
angular.module('App', ['NaverMaps']);
Use available directives (this is taken from the demo)
<ng-naver-map
zoom="11"
center="'current-location'"
zoom-control="true"
zoom-control-options='{position:{right: 10,left: 10}}'
size="['width', 400]"
enable-wheel-zoom="false"
on-center-changed="centerChanged(coord)">
<ng-naver-map-marker
ng-repeat="item in items"
model="item"
position='[37.5675451, 126.9773356]'
on-click="log(model)"
title="item.name">
</ng-naver-map-marker>
</ng-naver-map>
##Documentation
For the <ng-naver-map>
directive
[1,14]
)'current-location'
use the geolocation api to get current location[37.5675451, 126.9773356]
latitudinal and longitudinal values['width', 400]
set map with 100%
of its container width and 400px
height['width', 'height']
create a responsive map that scales to the width and height of its container[800, 400]
create a static map with width 800px
and height 400px
It is possible to place a marker on the map using <ng-naver-map-marker>
directive
It is possible to place an information window on the map using <ng-naver-map-infowindow>
directive (uses transclusion)
To add HTML to the info window, simply transclude your HTML in the directive.
FAQs
A simple angular directive for inegrating Naver Maps.
The npm package angular-naver-maps receives a total of 2 weekly downloads. As such, angular-naver-maps popularity was classified as not popular.
We found that angular-naver-maps demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.