-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: Plugin 'map_0_1298011159248' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml. #331
Comments
Please share your project files on GitHub repository. |
Hi, thanks for the reply, I found the issue, the maps works well I added this CSS rule in the global.scss file:
this rule set the background color correclty but it hide the map. I removed this rule and used this code:
but the background remains white, I get this log in the xcode console:
In Ionic 3 the Environment.setBackgroundColor work well but in Ionic 5 seems to not work, it can be related to the shadow dom? |
If you out a map div inside a shadow DOM, plugin can not check inside it. |
My map div is inside an ion-segment, I have a simple page, inside this page there is a ion-segment with the map div within. When the page is initialized (ngOnInit) I set the background color as the code above. But this is the normal way to build ionic app in Ionic 5 so I can't understand why the setBackgroundColor is completely ignored. There's a way to set the default background color as #dfdfdf instead of #ffffff ? |
Ah, I see. I got it. So, try to set background color to |
The reason is that most (new) users prefer to use this plugin like a normal HTML map. Picks up background color while the plugin changes the background color as |
I tried to set this, works in browser but not in iOS:
How I can do that? Can you provide an example? Thanks |
Please share your project files on GitHub. I can't see your situation |
Ok, thanks, I will share it on monday, so you can take a look. Thanks a lot, have a nice weekend! |
@wf9a5m75 Hi, I created a private repo and invited you, thanks for the help. |
Thank you. I will check it out later today |
Hi @wf9a5m75 , any news? |
I checked your code, but I can't run it (because there is no login/password information) As far as I read your code and the error log, the error causes when you changing the pages quickly. |
Hi @wf9a5m75, you can find the login information in the README.md file. What do you mean with changing the pages quickly, there's a way to slow down the page changing? Thanks |
The issue may be related to the ion-segment? |
I haven't tested with Please try to comment out |
I just tried, the issue persist, I didn't notice differences. I'm pretty sure that the issue is related to the ion-segment, when you switch the segment something overwrite the This issue was not present in Ionic 3 segment... |
For whom will incur in the same issue, I found a workaround, the issue is related to the ion-segment, if you put the map within an ion-segment when you switch segment the background color will change to transparent. So I changed my code in this way: In the variables.scss I set the ion-background-color
In the page I used this code
basically when the segment is changed to list the map wrapper div is set to |
I have the same problem on ios now: map is working, but i cant scroll it |
i use it |
I'm submitting a ... (check one with "x")
If you choose 'problem or bug report', please select OS: (check one with "x")
cordova information: (run
$> cordova plugin list
)If you use
@ionic-native/google-maps
, please tell the package.json (only@ionic-native/core
and@ionic-native/google-maps
are fine mostly)Current behavior:
I migrated an app from ionic 3 to ionic 5, so now I'm using ionic 5 and the map works well in browser but it doesn't work on iOS (13.4.1) I get a grey screen instead of the map.
This is the console log in xcode while the simulator is running:
The Google API key is correct, it works with the app in ionic 3.
Expected behavior:
That it works on iOS.
Thanks
The text was updated successfully, but these errors were encountered: