Closed luanfonceca closed 6 years ago
I found what was wrong in my code.
I have imported only the jquery and jquery-mapeael, but i need to import the maps that i want to use too.
import $ from 'jquery';
import 'jquery-mapael';
import 'jquery-mapael/js/maps/world_countries.js';
Hi @luanfonceca ,
Great, I'm glad you solved your issue !
I thought that i just needed to import the mapael package and the maps on Examples page would be automatically imported too, but looking at the example html i saw that you need to import it too.
Description
I am using the Mapael with React. I have just installed the package using
yarn
and started to setup the "Minimal example". But i am getting an error "Unknown map 'world_countries'", I added adebugger
onjquery-mapael/js/jquery-mapael.js
like 146 and print the variables and founded out that the maps property frommapael
plugin are not loaded.Environment