# Use maps plugin in custom plugin

**URL:** <https://discuss.elastic.co/t/use-maps-plugin-in-custom-plugin/284244>\
**Category:** Kibana\
**Tags:** maps\
**Created:** [September 15, 2021, 5:21am UTC](https://discuss.elastic.co/t/use-maps-plugin-in-custom-plugin/284244 "2021-09-15T05:21:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abak\_programmer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abak_programmer/32/94584_2.png) [@abak\_programmer](https://discuss.elastic.co/u/abak_programmer)\
**Post date:** [September 15, 2021, 5:21am UTC](https://discuss.elastic.co/t/use-maps-plugin-in-custom-plugin/284244/1 "2021-09-15T05:21:09Z")

</div>

hi everyone, i want to use maps plugin features in my plugin, how i do it ?

thanks

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [September 15, 2021, 7:14pm UTC](https://discuss.elastic.co/t/use-maps-plugin-in-custom-plugin/284244/2 "2021-09-15T19:14:09Z")

</div>

x-pack/data\_visualizer plugin provides a good example of using the MapEmbeddable to display a map. The relevant file to look at is [https://github.com/elastic/kibana/blob/master/x-pack/plugins/data\_visualizer/public/application/common/components/embedded\_map/embedded\_map.tsx](https://github.com/elastic/kibana/blob/master/x-pack/plugins/data_visualizer/public/application/common/components/embedded_map/embedded_map.tsx)

`embeddablePlugin.getEmbeddableFactory(MAP_SAVED_OBJECT_TYPE)` gets the MapEmbeddable factory from embeddablePlugin. To use the embeddablePlugin in your plugin, make sure "embeddable" is included in your plugin kibana.json file under requiredPlugins.

Hopefully this helps. Also, we have [this open issue that hopes to expose a react component](https://github.com/elastic/kibana/issues/88703) so plugin authors like you don't have to worry about low level embeddable factory stuff. Please comment as to how you would like to consume a Map component in your plugin.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 13, 2021, 7:14pm UTC](https://discuss.elastic.co/t/use-maps-plugin-in-custom-plugin/284244/3 "2021-10-13T19:14:39Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
