Base64 images for map marker icon not work on v2.0 (beta)
See original GitHub issueI’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:
- Created 6 years ago
- Comments:20 (12 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you for sharing your code.
By the way, pleas use triple back slashes to paste your code.
@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.