ngx-admin add mapbox in new page component

All we need is an easy explanation of the problem, so here it is.

how I want to add mapbox in <nb-card-body> in new pages i had created ?

I’ve already add html simple mapbox but nothing show on my mapsla page…

my component to add mapbox is mapsla and this project is based on ngx-admin starter-kit




Project structure

screen shot Error in ngx-admin web browser , map not show

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

You cannot insert html tag into the nb-card-body as html is a container element for other elements. Since ngx-admin is built on top of Angular, try using corresponding library Hope this helps.

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply