Using Custom SVGs as Map Markers
-
Hi, I’m using Geodirectory on a site that displays walking tours around the city, with the Places being points of interest on the trail. Each trail has a different colour, so all the markers for route A are blue, route B are all green etc. When new tours or places are added, the routes often get rejigged so they don’t get too long or have too many stops.
We’re currently using custom PNGs for the map markers, but this means I have to remake them every time a trail changes. For example, if a Place moves from route A to route B I have to redo the icon in green, so if 50 places are switching trails then it’s a lot of work to create all the new colours and reupload them. The PNGs also don’t look great at certain resolutions so I’d rather use an SVG so it’s scaleable.
Using the Font Awesome icons means I can just change the colour and the map pin will recolour itself, except we are using custom icons that don’t have Font Awesome equivalents.
Is there a way I can use a custom SVG as the map pin? Looking through the plugin code maybe there’s a way of hooking in extra items to the geodir_font_awesome_array function?
Thanks
- You must be logged in to reply to this topic.