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

Version published
Weekly downloads
974
decreased by-4.98%
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="map">
  <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

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

Map

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.

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

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>

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>

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>

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 14 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