Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular8-yandex-maps

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular8-yandex-maps

Angular module for Yandex.Maps

  • 1.7.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
961
increased by13.33%
Maintainers
1
Weekly downloads
 
Created
Source

npm version GitHub stars

Angular8-yandex-maps

Angular 6+ module for Yandex.Maps

If you liked the project and want to support the development please star the package on GitHub page. Thanks!

Table of Contents

Examples

Installation

npm install angular8-yandex-maps

Usage

module.ts

import { AngularYandexMapsModule } from 'angular8-yandex-maps';

@NgModule({
  imports: [AngularYandexMapsModule.forRoot(API_KEY or null)]
})

component.html

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

component.css

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

Map*

Asterisk means root container, they can not be inside each other
Inputs
NameTypeDefaultRequiredDescription
centerNumber[]yesMap center geocoordinates
zoomNumber10noMap zoom level
stateMapStatenoStates for the map
optionsMapOptionsnoOptions for the map
clustererClusterernoOptions for the Clusterer. Clusters ONLY Placemarks in the visible area of the map.
Outputs
NameTypeDescription
onInitMapEmit immediately after entity is added in root container
Children

<angular-yandex-map [center]="[55.751952, 37.600739]" [zoom]="12" [state]="{type: 'yandex#satellite'}"></angular-yandex-map>

Panorama*

Inputs
NameTypeDefaultRequiredDescription
pointNumber[]yesMap center geocoordinates
layer'yandex#panorama' or 'yandex#airPanorama''yandex#panorama'noThe layer in which the panorama will be searched
optionsPanoramaOptionsnoOptions for the panorama
Outputs
NameTypeDescription
onInitPlayerEmit immediately after entity is added in root container
Children
  • None

<angular-yandex-panorama [point]="[59.938557, 30.316198]" [layer]="'yandex#airPanorama'"></angular-yandex-panorama>

Placemark

Inputs
NameTypeDefaultRequiredDescription
geometryNumber[] or Object or IPointGeometryyesPlacemark coordinates or...read Yandex.Maps docs
propertiesPlacemarkPropertiesnoProperties for the placemark
optionsPlacemarkOptionsnoStates for the placemark
Outputs
NameTypeDescription
onInitGeoObjectEmit immediately after entity is added in root container

<angular-yandex-placemark [geometry]="[55.751952, 37.600739]" [properties]="{ iconCaption: 'Moscow' }"></angular-yandex-placemark>

GeoObject

Inputs
NameTypeDefaultRequiredDescription
featureGeoObjectFeatureyesFeature for the GeoObject
optionsGeoObjectOptionsnoOptions for the GeoObject
Outputs
NameTypeDescription
onInitGeoObjectEmit immediately after entity is added in root container

<angular-yandex-geoobject [feature]="{ geometry: { type: 'Rectangle', coordinates: [[55.665, 37.66], [55.64,37.53]] } }"></angular-yandex-geoobject>

MultiRoute

Inputs
NameTypeDefaultRequiredDescription
referencePointsIMultiRouteReferencePoint[]yesReference points for the multi-route
modelmultiRouter.MultiRouteModel or MultiRouteModelJsonnoProperties for the multiroute
optionsMultiRouteOptionsnoOptions for the multiroute
Outputs
NameTypeDescription
onInitmultiRouter.MultiRouteEmit immediately after entity is added in root container

<angular-yandex-multiroute [referencePoints]="[[55.751952, 37.600739], 'Красные ворота, Москва']" [options]="{ routeActiveStrokeColor: 'ff0000' }"></angular-yandex-multiroute>

Control

Inputs
NameTypeDefaultRequiredDescription
typeStringyesControl type. List of types you can find in left list - Controls. E.g. Control.FullscreenControl - 'FullscreenControl'
parametersanynoParameters for the Control
Outputs
NameTypeDescription
onInitControlEmit immediately after entity is added in root container

<angular-yandex-control [type]="'RoutePanel'" [parameters]="{ options: { float: 'right' } }"></angular-yandex-control>

Changelog

CHANGELOG

License

MIT

Keywords

FAQs

Package last updated on 17 Nov 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc