Socket
Socket
Sign inDemoInstall

angular8-yandex-maps

Package Overview
Dependencies
6
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    angular8-yandex-maps

Angular components for Yandex.Maps


Version published
Weekly downloads
1.4K
increased by3.67%
Maintainers
1
Install size
675 kB
Created
Weekly downloads
 

Changelog

Source

10.4.0 - 2020-10-26

Added

  • Typings, @types/yandex-maps, npm install --save-dev @types/yandex-maps
  • 'error' event handling in ScriptService

Changed

  • Output 'baloon' was renamed in 'balloon' (breaking changes)
  • Mouse, multitouch events are running outside angular now (#35)
  • Make apikey optional in IConfig

Fixed

  • Omit wrong query params when loading API

Readme

Source

npm version Build Status npm bundle size npm chat on Telegram GitHub stars

Angular8-yandex-maps

The library implements the base Yandex.Maps functionality. By the way you can access to the ymaps instance so you can use full Yandex.Maps API.

Leave suggestions, problems, errors, difficulties in GitHub Issues. Star the repository and thanks for using the library!

Documentation

Documentation

Examples

Examples

Installation

npm install angular8-yandex-maps

Versions now follow Angular's version to easily reflect compatibility. Meaning, for Angular 6, use

npm install angular8-yandex-maps@^6.0.0

Usage

app.module.ts

Default map config options
import { AngularYandexMapsModule } from 'angular8-yandex-maps';

@NgModule({
  imports: [AngularYandexMapsModule]
})
export class AppModule { }
Own map config options
import { AngularYandexMapsModule, IConfig } from 'angular8-yandex-maps';

const mapConfig: IConfig = {
  apikey: 'API_KEY',
  lang: 'en_US',
};

@NgModule({
  imports: [AngularYandexMapsModule.forRoot(mapConfig)]
})
export class AppModule { }
Injection token
import { AngularYandexMapsModule, YA_MAP_CONFIG } from 'angular8-yandex-maps';

@NgModule({
  imports: [AngularYandexMapsModule],
  providers: [{
    provide: YA_MAP_CONFIG,
    useValue: {
      apikey: 'API_KEY',
      lang: 'en_US',
    }
  }],
})
export class AppModule { }

component.html

<div class="container">
  <ya-map [center]="[55.751952, 37.600739]" [zoom]="12">
    <ya-placemark [geometry]="[55.751952, 37.600739]"></ya-placemark>
  </ya-map>
</div>

component.css

.container {
  width: 1000px;
  height: 500px;
}

Changelog

CHANGELOG

License

MIT

Keywords

FAQs

Last updated on 26 Oct 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc