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.6.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!

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.
Children
Name
Placemark
MultiRoute
GeoObject
Search

<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
Children
Name
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

<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

<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

<angular-yandex-multiroute [referencePoints]="[[55.751952, 37.600739], 'Красные ворота, Москва']" [options]="{ routeActiveStrokeColor: 'ff0000' }"></angular-yandex-multiroute>
Inputs
NameTypeDefaultRequiredDescription
searchRequestStringnoForce search. Example: SearchRequestExample
parametersSearchControlParametersnoParameters for the Search

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

Changelog

CHANGELOG

License

MIT

Keywords

FAQs

Package last updated on 16 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