Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maiyaporn/summernote-map-plugin

Google Maps Plugin for Summernote
https://github.com/maiyaporn/summernote-map-plugin

Last synced: 1 day ago
JSON representation

Google Maps Plugin for Summernote

Awesome Lists containing this project

README

        

# summernote-map-plugin

This is a plugin for adding map to [Summernote WYSIWYG] editor. It allows users to search for places with autocomplete (Google Places API) and add an embed map of the selected place to editor.

## Demo

Summernote-map-plugin

## Installation

Include a plugin script along with Summernote








Note:
If google maps api is not already in your application, the plugin will load the script automatically with your apiKey.

## Configuration

To enable map button in toolbar, you need to add 'map' in toolbar options when initialize summernote. Also, you can provide your apiKey along with other config for the map.


$('#summernote').summernote({
map: {
apiKey: 'GOOGLE_MAP_API_BROWSER_KEY',
// This will be used when map is initialized in the dialog.
center: {
lat: -33.8688,
lng: 151.2195
},
zoom: 13
},
toolbar: [
['insert', 'map']]
]
});