New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ang-google-map

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ang-google-map

[![npm version](https://img.shields.io/npm/v/ang-google-map.svg)](https://www.npmjs.com/package/ang-google-map)

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by66.67%
Maintainers
1
Weekly downloads
 
Created
Source

Angular 2/4/6/8 Google Map

npm version

Angular 2+ Google Map Component.

Getting Started

Installation

  • Google map package is published on the npm Registry.
  • Install the package : npm install ang-google-map --save

-Generate google map api key from google developer site Link

-Once installed Add ```html

```

to your index.html file head tag

  • import AngularGoogleMapModule from the installed package into your module as follows:

Usage

Import AngularGoogleMapModule into NgModule in app.module.ts.

import { AngularGoogleMapModule } from 'ang-google-map';

@NgModule({
  // ...
  imports: [
    AngularWeatherWidgetModule
  ]
  // ...
})

Add the following component tag in you template (no properties)

<ang-google-map [mapSettings]='settings'></ang-google-map>

Full properties

  settings = {
    zoomValue: 15,
    isGeolocation: false,
    customStyles: [],
    latitude: 40.7128,
    longitude: 74.0060,
    enableGestureHandling: 'none',
    disableDefaultUI: true,
    isSatelliteView: false,
    isZoomControl: true,
    isStreetViewControl: false,
    showPixelAndCoordinates: true,
    address : {
      filed1: 'Bruce wayne',
      filed2: 'Wayne manor',
      filed3: '1007 Mountain Drive',
      filed4: 'Gotham',
      filed5: 'United States',
    },
    isDarkTheme: true,
    enableMarker: [{
      isEnable: true,
      isDragable: true,
      animation: true,
      clickToggle: true,
      lat: 0,
      lng: 0
    },{
      isEnable: true,
      isDragable: true,
      animation: true,
      clickToggle: true,
      lat: 0,
      lng: 0
    }]
  }

Properties

The following list of properties are supported by the component.

| Property |Type | Description | Default Value | options | |:--- |:--- |:--- |:--- | | zoomValue | Number | Map's initial zoom value | 15 | | | isGeolocation | Boolean | Take user's location | false | | | customStyles | Array | Add custom styles to map | [] | style options | | latitude | Number | Latitude of the location | 40.7128 | | | longitude | Number | Longitude of the location | 74.0060 | | | enableGestureHandling | String | control zoom, page scrolling | none | cooperative, greedy, details | | disableDefaultUI | Boolean | Enables/disables all default UI. May be overridden individually | true | | | isSatelliteView | Boolean | Enable Satellite View of the map | false | | | isZoomControl | Boolean | Enable UI for map zooming option (+ & -) | true | | | isStreetViewControl | Boolean | The initial enabled/disabled state of the Street View Pegman control | false | | | showPixelAndCoordinates | Boolean | World coordinates, which reference a point on the map uniquely. | true | | | address | Object | Show informations | { filed1: 'Bruce wayne', filed2: 'Wayne manor', filed3: '1007 Mountain Drive', filed4: 'Gotham', filed5: 'United States', } | | | isDarkTheme | Boolean | Enable dark theme | true | |

| enableMarker | Array | Mark places to map | { isEnable: true, isDragable: true, animation: true, clickToggle: true, lat: 0, lng: 0 | |

Run locally

  • Clone the repository or downlod the .zip,.tar files.
  • Run npm install
  • Run ng serve for a dev server
  • Navigate to http://localhost:4200/

License

MIT License.

Keywords

FAQs

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