Tell us what you are trying to do?
Change marker icon in Toolset Forms
Is there a similar example that we can see?
hidden link
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Hello. Thank you for contacting the Toolset support.
Unfortunately, I do not see any way to change the marker icon displayed on the Toolset forms.
You can add it as a feature request and our product manager will review it.
- https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/
Hi Minesh,
Too bad, I need the markers on all pages of the site to be the same style.
Maybe there is a way to change the marker through the code?
I will be very grateful for an example. Is it possible?
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
It is possible to change within the code.
You can open the following file:
plugins\toolset-maps\resources\js\wpv_addon_maps_editor.js
And navigate to line number: 401, you will find the following code:
You should change the following code from:
if ( ! thiz.prop( 'disabled' ) ) {
thiz_marker_options = {
draggable: true
};
}
To:
if ( ! thiz.prop( 'disabled' ) ) {
thiz_marker_options = {
draggable: true,
icon:'<em><u>hidden link</u></em>'
};
}
Where:
- You can change the icon image URL to your desired URL and save the file.
I hope this will help.
Note:
- Please note that as you are editing the core file source code, when you update the plugin, the above change will be overridden.
My issue is resolved now.
I understand that this fix will be overwritten when updating the Toolset Maps.
But as a quick fix, it's great.
Thanks for the help!