Home › Forums › WoodMart support forum › Google Map Marker
Google Map Marker
- This topic has 7 replies, 2 voices, and was last updated 10 months, 1 week ago by Luke Nielsen.
-
AuthorPosts
-
February 12, 2024 at 1:32 pm #539017
gisliParticipantHey there,
I’m trying to add a custom map marker to the Google Map widget. Everything is working as intended aside from adjusting the size of the SVG marker. No matter what I try I just can’t seem to change the size if the marker is in SVG format. Having it in PNG format will always end up looking ugly when scaled down so small, so SVG would be ideal. I know it’s possible because on your demo site you have an example of the Google Map widget with a custom svg marker and looking at the dev tools I see that the size is set somewhere – I just can’t figure out where you set it.
Any help would be greatly appreciated!
Attachments:
You must be logged in to view attached files.February 12, 2024 at 4:40 pm #539111
Luke NielsenKeymasterHello,
In this case, is there any chance that you could give me access to the dashboard area so I can have a look at the settings on your website, please?
Looking forward to collaborating with you!
Kind Regards
February 12, 2024 at 5:10 pm #539129
gisliParticipantSure thing. I’ve attached a link to an HTML block with a custom map marker and log-in details in the Extra Information field below.
February 13, 2024 at 3:14 pm #539520
Luke NielsenKeymasterHello,
From the demo, the marker has the “Thumbnail” resolution: https://take.ms/8dtZQ and the dimensions as 80×80: https://take.ms/hXBuXj . At the moment, I see that you have the png image, so try to set the SVG icon and let me know, so I can check how it looks.
Kind Regards
February 13, 2024 at 3:22 pm #539523
gisliParticipantHey Luke,
Just set the marker as the SVG icon, set the resolution to thumbnail and as you can see in the first screenshot the marker’s dimensions are 60x60px. The marker that shows up on the map however is 150x150px.
Attachments:
You must be logged in to view attached files.February 13, 2024 at 4:28 pm #539582
Luke NielsenKeymasterHello,
Your SVG doesn’t have the width and height attributes.
Your SVG: https://take.ms/uQn23
Our: https://take.ms/yzoXWYou need to open your SVG logo file with some editor like Sublime Text or the default system text editor and add height and width attributes to your SVG tag like it is shown on the screenshot (https://prnt.sc/wsuf5ruwr7ij)
Kind Regards
February 13, 2024 at 4:42 pm #539587
gisliParticipantAh, of course! Thanks a lot, everything’s working as intended now.
February 13, 2024 at 5:19 pm #539606
Luke NielsenKeymasterHello,
You are welcome! If you do not mind, can you please leave a 5 stars rating for our theme by going here: http://themeforest.net/downloads It will allow us to release more updates and provide dedicated support in future. It would encourage our work a lot.
Have a good day!
Best Regards
-
AuthorPosts
Tagged: google maps
The topic ‘Google Map Marker’ is closed to new replies.
- You must be logged in to create new topics. Login / Register