Description:
Simple to use (Angular) embedded Google map.
INSTALLATION:
Using NPM:
npm install --save sdk-google-map
CONFIGURATION:
To configure the sdk-google-map
for your application, add the following lines to your app.module.ts file:
import { SDKGoogleMapModule } from 'sdk-google-map';
@NgModule({
imports: [
SDKGoogleMapModule
]
})
export class AppModule { }
USAGE:
<sdk-google-map location="1600 Amphitheatre Parkway Mountain View, CA 94043, USA"></sdk-google-map>
<sdk-google-map latitude="37.422161" longitude="-122.084267"></sdk-google-map>
You can also control the zoom, height and width:
<sdk-google-map location="1600 Amphitheatre Parkway Mountain View, CA 94043, USA" height="500px" width="750px" zoom="12"></sdk-google-map>
There's also the ability to apply a "loading" affect while the map is loading your location:
<sdk-google-map location="1600 Amphitheatre Parkway Mountain View, CA 94043, USA" isLoading="true"></sdk-google-map>