Answer the question
In order to leave comments, you need to log in
How can I change marker size in Maplace.Js jquery plugin?
Hello.
There is a jquery plugin for google map Maplace.Js.
If you change the marker to your image in the plugin, the image size will not change to the size of the default marker, but I need the image to change its size to the default one.
CODE:
$(document).ready(function() {
new Maplace({
locations: [
{
lat: <?php echo $map_lat ?>,
lon: <?php echo map_lon ?>,
icon: ' https://image .flaticon.com/icons/svg/565/565586.svg ',
zoom: 14,
}
],
controls_on_map: false,
start: "0",
map_options: {
zoom: 7,
scrollwheel: false}
}).Load();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question