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.

Base64 images for map marker icon not work on v2.0 (beta)

See original GitHub issue

I’m updating from 1.4.3 to 2 (beta) and now do not work base64 icon for marker, but on 1.4.3 version, base64 worked perfectly. Even marker.setIcon does not help.

cordova version 7.0.1 platform iOS plugin list:

com.googlemaps.ios 2.3.0 "Google Maps SDK for iOS"
cordova-plugin-geolocation 2.1.0 "Geolocation"
cordova-plugin-googlemaps 2.0.0-beta2-20170705-1715 "cordova-plugin-googlemaps"
cordova-plugin-inappbrowser 1.7.0 "InAppBrowser"
cordova-plugin-splashscreen 3.1.0 "Splashscreen"
cordova-plugin-sqlite-2 1.0.4 "SQLitePlugin"
cordova-plugin-statusbar 2.2.3 "StatusBar"
cordova-plugin-whitelist 1.3.2 "Whitelist"
ionic-plugin-keyboard 2.2.1 "Keyboard"
onesignal-cordova-plugin 2.0.11 "OneSignal Push Notifications"
map.addMarker({
	position	: {lat: cart.order.latitude, lng: cart.order.longitude},
	icon		: {
		url		: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgA...uQmCC",
		size	: {
			width	: 22,
			height	: 22
		}
	}
});

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:20 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
wf9a5m75commented, Jul 18, 2017

Thank you for sharing your code.

By the way, pleas use triple back slashes to paste your code.

screen shot 2017-07-18 at 3 16 45 pm

screen shot 2017-07-18 at 3 16 53 pm

0reactions
wf9a5m75commented, Jul 21, 2017

@trin4ik I already fixed this bug in the commit someone (I committed a lot…) But I confirmed the star image is displayed correctly without hack. Please use the latest version 2.0.0-beta2-20170720-1821 or higher.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Map, styling not working on marker img with class but ...
After a bit of playing with google maps I found out that it actually embeds the icon 2 times on the map, so...
Read more >
Changelogs for Maps Marker Pro
Topic: ; fix Google geocoding not returning coordinates ; fix race condition when centering marker on map ; fix erroneous unsaved changes warning...
Read more >
[Google Maps Library] How to set base64 or binary as marker ...
Hi,. Is it possible to set marker icon not by URL but using base64 or binary image? Thank you.
Read more >
Customizing the Local Context Map | Maps JavaScript API
Learn more about ways to customize a marker by modifying the label and icon properties of a Marker . By default, these markers...
Read more >
markers-on-map - npm
Use highly customizable maps (Google Maps) with multiple custom Markers in your web projects.. Latest version: 1.4.0, last published: 3 ...
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