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.9.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

npm version npm bundle size 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!

Full documentation about events, options, properties etc. you can find here.

Table of Contents

Examples

Panorama
GeoObjects
Multiroute
Controls

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 nested
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
loadIEventEmit immediately after entity is added in root container
actionIEventSmooth map movement. Supported events: actionbegin, actionend
baloonIEventActions with ballon. Supported events: balloonopen, balloonclose
yaclickIEventClicks on the object. Supported events: click, dblclick
hintIEventAction with hint. Supported events: hintopen, hintclose
mouseIEventMouse actions over the object. Supported events: mousedown, mouseenter, mouseleave, mousemove, mouseup
multitouchIEventMultitouch actions over the object. Supported events: multitouchstart, multitouchmove, multitouchend
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
layeryandex#panorama or yandex#airPanoramayandex#panoramanoThe layer in which the panorama will be searched
optionsPanoramaOptionsnoOptions for the panorama
Outputs
NameTypeDescription
loadIEventEmit immediately after entity is added in root container
directionchangeIEventThe view direction changed
fullscreenIEventFull-screen mode was switched. Supported events: fullscreenenter, fullscreenexit
markerIEventClicks on the marker. Supported events: markercollapse, markerexpand, markermouseenter, markermouseleave
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
loadIEventEmit immediately after entity is added in root container
baloonIEventActions with ballon. Supported events: balloonopen, balloonclose
yaclickIEventClicks on the object. Supported events: click, dblclick
dragIEventPlacemark dragging. Supported events: dragstart, dragend
hintIEventAction with hint. Supported events: hintopen, hintclose
mouseIEventMouse actions over the object. Supported events: mousedown, mouseenter, mouseleave, mousemove, mouseup
multitouchIEventMultitouch actions over the object. Supported events: multitouchstart, multitouchmove, multitouchend

<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
loadIEventEmit immediately after entity is added in root container
baloonIEventActions with ballon. Supported events: balloonopen, balloonclose
yaclickIEventClicks on the object. Supported events: click, dblclick
dragIEventGeoObject dragging. Supported events: dragstart, dragend
hintIEventAction with hint. Supported events: hintopen, hintclose
mouseIEventMouse actions over the object. Supported events: mousedown, mouseenter, mouseleave, mousemove, mouseup
multitouchIEventMultitouch actions over the object. Supported events: multitouchstart, multitouchmove, multitouchend

<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
loadIEventEmit immediately after entity is added in root container
activeroutechangeIEventChange to the active route
baloonIEventActions with ballon. Supported events: balloonopen, balloonclose
yaclickIEventClicks on the object. Supported events: click, dblclick
mouseIEventMouse actions over the object. Supported events: mousedown, mouseenter, mouseleave, mousemove, mouseup
multitouchIEventMultitouch actions over the object. Supported events: multitouchstart, multitouchmove, multitouchend

<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
loadControlEmit 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 20 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