question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error show htmlinfowindow

See original GitHub issue

I’m submitting a … (check one with “x”)

  • question
  • any problem or bug report
  • feature request

If you choose ‘problem or bug report’, please select OS: (check one with “x”)

  • Android
  • iOS

cordova information: (run $> cordova plugin list)

insert the output from the command here

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:

Expected behavior:

Screen capture or video record:

Related code, data or error log (please format your code or data):

The person who share your project files on Github (or other git repository) is in faster lane than other people. Please share your project files on Github or others(Bitbucket, Gitlabs…etc). If you don’t want to share your project files, please create a demo project, then share it.

Screen captures, and/or native logs(such as Logcat, xcode logs) are appreciate.

Giving much information, you are waiting time is less. Thank you for your cooperation.

Hello,

Whenever I show several times and hide an infowindow there comes a point that fails.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
wf9a5m75commented, Apr 17, 2018

Ok, I finally figured out the problem, and fix it. I didn’t noticed your app generate dynamic image with canvas.

In order to fix the problem, please reinstall the plugin from the multiple_maps branch.

$> cordova plugin rm cordova-plugin-googlemaps

$> cordova plugin add https://github.com/mapsplugin/cordova-plugin-googlemaps.git#multiple_maps \
 --variable API_KEY_FOR_ANDROID="..." \
 --variable API_KEY_FOR_IOS="..." \
 --variable PLAY_SERVICES_VERSION ="11.8.0"  <--please adjust the version by yourself.

One default behavior has been changed. The HtmlInfoWindow does not apply the white-space:pre css property to the contents anymore. In order to keep the design, please modify your CSS like this.

.infowindow{
  width: 100%;
  line-height: 2px;
  white-space: pre;   /* <-- Add this line */
}

2217

0reactions
jhonarodriguezcommented, Apr 17, 2018

Ohh! Thank you very much, working correctly, you are a crack friend (Y), I had some problems compiling with the multiple_maps branch in phonegap build, but the rest worked very well.

PD: If I have to make images with canvas to add the label to the marker, sorry for not mentioning the data.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ionic 2: use HtmlInfoWindow in native cordova-plugin ...
Show activity on this post. It seems the ionic team forgot to implement the bindTo method of BaseClass. I sent a pull request....
Read more >
[solved]Google maps HtmlInfoWindow not displaying picture ...
try{ var htmlInfoWindow = new HtmlInfoWindow(); var html = "<img ... [solved]Google maps HtmlInfoWindow not displaying picture or html?
Read more >
Info Windows | Maps JavaScript API - Google Developers
The InfoWindow constructor takes an InfoWindowOptions object literal, which specifies the initial parameters for displaying the info window.
Read more >
nightstomp/cordova-plugin-googlemaps - Gitter
i have some issue, my maps not show inside modal, how to best practice to solve that? ... TIC SSL Trust Error NSURLSession/NSURLConnection...
Read more >
gmaps4jsf - Google Code
ID Status Summary 205 New source code incomplete Type‑Defect Priority‑Medium 202 New Moveend event example Type‑Defect Priority‑Medium 198 New Bad checksum on 3.0.0 Type‑Defect Priority‑Medium
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found