Comments (14)
Is there a way to use custom icon fonts rather than png files - like these http://map-icons.com/ ?
from angular-google-maps.
Is it possible to insert some marker options like size?
from angular-google-maps.
@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>
from angular-google-maps.
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.
from angular-google-maps.
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.
from angular-google-maps.
@bholben Is this possible now? "Is there a way to use custom icon fonts rather than png files - like these http://map-icons.com/ ?"
from angular-google-maps.
can we define icon based on local path from our /assets/images/ path for example instead of an actual httpurl type?
from angular-google-maps.
@rushstrike Sure. Just make sure the path is relative to your index.html file, i.e. iconUrl="assets/images/marker.jpg"
from angular-google-maps.
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
from angular-google-maps.
thanks :D
from angular-google-maps.
Is it now possible to add size?
from angular-google-maps.
#517 works for me
from angular-google-maps.
Is there a possibility to customize that image icon used as a Marker with CSS ?
from angular-google-maps.
No the custom image icons like we have an ability to do in Javascript Maps. Like this for instance https://www.google.ca/search?q=custom+marker+google+maps&rlz=1C1CHZL_enCA749CA749&source=lnms&tbm=isch&sa=X&ved=0ahUKEwiPpPiolq3aAhXQ7VMKHd1hC2sQ_AUICigB&biw=1536&bih=759#imgrc=crauu15YlnsVLM:
from angular-google-maps.
Related Issues (20)
- Not getting lat long data from Circle and Rectangle
- No Support for Angular 12 version. HOT 1
- How to grey the Map? HOT 2
- Angular 14 support? HOT 15
- Warning Error
- Can you provide a support to create a Context Menu on Marker Right click.
- agm-polygon path is not getting updated on changes in component.ts file
- click
- fullscreenControl and fullscreenControlOptions is not working as expected
- Blur the map area when a polygon is drawn
- NG 14 support not published HOT 15
- Publish please HOT 2
- In Angular version 16 not working HOT 4
- How to implement data-driven styling based on placeId?
- error TS2314: Generic type 'MapHandlerMap<T>' requires 1 type argument(s). HOT 3
- error in (agm-core.js:299:31) when using @Agm/core
- In Angular-16 gives error
- Angular 16 compatibility? HOT 2
- Google Maps warning HOT 1
- google.maps.MouseEvent returns "r"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-google-maps.