Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

Resizing a base 64 icon #885

Open
estellederrien opened this issue Jun 3, 2019 · 0 comments
Open

Resizing a base 64 icon #885

estellederrien opened this issue Jun 3, 2019 · 0 comments

Comments

@estellederrien
Copy link

estellederrien commented Jun 3, 2019

Hello !
I wonder if somebody could help me :

The following code is working well :
<marker ng-repeat="p in markersClubs" position="{{p.latitude}},{{p.longitude}}" title="{{p.nom}}" icon="{{p.img}}" on-mouseover="showClub(event,p.identifiant)" ></marker>

But this is not working, i'm trying out to resize my icons ;

<marker ng-repeat="p in markersClubs" position="{{p.latitude}},{{p.longitude}}" title="{{p.nom}}" icon="{url:'{{p.img}}',scaledSize:[100,100],origin: [10,10],anchor: [50,50]}" on-mouseover="showClub(event,p.identifiant)" ></marker>

p.img does not get interpreted, i wonder if somebody could help me please.

p.img is a base 64 image, looking like this :
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAYAAACLz2ctAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4nOy9eXhU5fn//3rObMlkkswkgWxkA8ISdomsEdAKAioC7ta629rla2u1Ulut9mOt2o9Vqa3tt9iPS7FKVRQQXFB2wipbyL6QkH1fJjNJZjnP etc ...

thanks a lot for your gentle help

@estellederrien estellederrien changed the title Resize a base 64 icon Resizing a base 64 icon Jun 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant