SGoogleMapComponent
This component allows you to create easily nice google map with custom marker(s) on it.
Preview
Simple google map
Hello google!
Hello google!
Loading code example. Please wait...
Using the base s-google-map classes
Hello google!
Hello google!
Loading code example. Please wait...
Using multiple markers
Hello google! #1
Hello google! #2
Hello google! #1
Hello google! #2
Loading code example. Please wait...
Features
-
Framework agnostic. Simply webcomponent.
-
Support of (custom) marker(s)
-
Declarative markers using simple
s-gogle-map-marker
tag -
Theming your map as usual using the Google cloud maps styles
-
And more...
Import
Install
Interface
-
apiKey *RequiredAIzaSyDzFfEzhmYXRTlONUCtMWQ88uHJhsbtXY4String
Specify the google api key to use. You can specify it in the config.google.map.apiKey configuration for your project if you prefer
-
mapId *RequiredString
Specify your mapId that you can create here
-
lat *RequiredNumber
Specify the map latitude
-
lng *RequiredNumber
Specify the map longitude
-
zoomNumber
Specify the google map zoom
-
boundstrueBoolean
Specify if you want your map to be bounds on current markers
-
icons{"marker":"<i class=\"fa-solid fa-location-dot\"><\/i>"}Object
Specify some icons to be used across your maps
-
zoomControlfalseBoolean
Specify if you want the zom control or not
-
mapTypeControlfalseBoolean
Specify if you want the map type control or not
-
scaleControlfalseBoolean
Specify if you want the map scale control or not
-
streetViewControlfalseBoolean
Specify if you want the streeview control or not
-
rotateControlfalseBoolean
Specify if you want the rotate control or not
-
fullscreenControlfalseBoolean
Specify if you want the fullscreen control or not