Skip to content
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

Custom Markers #123

Closed
alfredoperez opened this issue Feb 12, 2016 · 14 comments
Closed

Custom Markers #123

alfredoperez opened this issue Feb 12, 2016 · 14 comments

Comments

@alfredoperez
Copy link

It will be nice to be able to create custom markers....
https://developers.google.com/maps/tutorials/customizing/custom-markers

@sebholstein sebholstein added this to the v0.7.0 milestone Feb 12, 2016
@sebholstein sebholstein modified the milestones: v0.8.0, v0.7.0 Feb 21, 2016
sebholstein added a commit that referenced this issue Mar 16, 2016
You can define a custom via a custom URL like this:

```
<sebm-google-map-marker [iconUrl]="http://example.com/icon.png">
</sebm-google-map-marker>
```

Closes #123
sebholstein added a commit that referenced this issue Mar 16, 2016
You can define a custom via a custom URL like this:

```
<sebm-google-map-marker [iconUrl]="http://example.com/icon.png">
</sebm-google-map-marker>
```

Closes #123
@abmnukmr
Copy link

abmnukmr commented Dec 5, 2016

@SebastianM
You can define a custom via a custom URL like this:

<sebm-google-map-marker [iconUrl]="'http://example.com/icon.png'">
</sebm-google-map-marker>

@bholben
Copy link

bholben commented Dec 19, 2016

Is there a way to use custom icon fonts rather than png files - like these http://map-icons.com/ ?

@TaiPhamD
Copy link

TaiPhamD commented Jan 3, 2017

can we define icon based on local path from our /assets/images/ path for example instead of an actual httpurl type?

@bholben
Copy link

bholben commented Jan 3, 2017

@rushstrike Sure. Just make sure the path is relative to your index.html file, i.e. iconUrl="assets/images/marker.jpg"

@JanCizmar
Copy link

Is it possible to insert some marker options like size?

@Gaetane
Copy link

Gaetane commented Apr 21, 2017

Yes, I think it could be a good thing to add height and width to the markers. It would be useful to be able to adapt the size of the markers to the size of the screen, like on smartphones.

@khzemni
Copy link

khzemni commented May 9, 2017

I have an issue, when i trie to customise the marker with [iconUrl] directive it goes hidden
<sebm-google-map-marker [iconUrl]="'car.png'">

note : the png file is in the same folder as the html file

@JanCizmar
Copy link

JanCizmar commented May 9, 2017

The same folder as the html file is not correct path. Try to open the developer tools > network tab in your browser and search for the location where the browser is looking for the .png file. Probably it should be located somewhere in the root of you application or in the assets or images folder.

@khzemni
Copy link

khzemni commented May 9, 2017

thanks :D

@bkbaheti
Copy link

Is it now possible to add size?

@fabrizziocht
Copy link

fabrizziocht commented Mar 10, 2018

#517 works for me

@amritofficial
Copy link

Is there a possibility to customize that image icon used as a Marker with CSS ?

@devpato
Copy link

devpato commented Apr 9, 2018

@bholben Is this possible now? "Is there a way to use custom icon fonts rather than png files - like these http://map-icons.com/ ?"

@amritofficial
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests