Hi. I'm happy you included OpenStretMap in your newest version of Phoca Map. It is certainly most useful and good looking :)
I try to use Font Awesome as markers and they is so small. Is it possible to resize them with "Additional Icon Class". If so, how?
Style Icon in OpenStreet Map
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Style Icon in OpenStreet Map
Hi, hmmm, really good question. I don't have any experiences with this.
Testing here with CSS:
https://www.phoca.cz/joomla3demo/phoca-maps-demo
you can resize the Icon with CSS but it will be shiften then
Another way could be directly customizing the code
https://wiki.openstreetmap.org/wiki/Marker_API
Jan
Testing here with CSS:
https://www.phoca.cz/joomla3demo/phoca-maps-demo
you can resize the Icon with CSS but it will be shiften then
Code: Select all
.leaflet-marker-icon, .leaflet-marker-shadow, .leaflet-image-layer, .leaflet-pane > svg path, .leaflet-tile-container {
pointer-events: none;
width: 50px !important;
height: 82px !important;
}
https://wiki.openstreetmap.org/wiki/Marker_API
Jan
If you find Phoca extensions useful, please support the project