Hi @angelolazzari,
Thank you so much for getting in touch, we really appreciate your time.
Unfortunately, this is no possible by default, however, I took a closer look at your map and you might be able to achieve this with the belw snippet.
Kindly navigate to -> Maps -> Settings -> Advanced Settings -> Please copy the below custom JS:
jQuery(document.body).on("filteringcomplete.wpgmza", function (event) {
var loc = WPGMZA.maps[0].getCenter();
var strLoc = loc.lat + ',' + loc.lng;
$('[name="gps-339"]').val(strLoc);
});
Once copied, please please paste this in the custom JS field and save the settings.
Thank you very much @stevendebeer! I pasted all but i don’t know where the values are displayed… is there a possibility to put them into the form field? or display them on the top of the map?
thanks you very much!
Angelo
Hi @angelolazzari,
Thank you so much for getting back to me.
My sincerest apologies for the back and forth, the should be added to the GPS latitude/longitude field to the right of the form.
Please replace the previous code with the following instead?
jQuery(document.body).on("filteringcomplete.wpgmza", function (event) {
var loc = WPGMZA.maps[0].getCenter();
var strLoc = loc.lat + ',' + loc.lng;
jQuery('[name="gps-339"]').val(strLoc);
});
Failing this, might I kindly ask you to please get in touch with us directly via our website? This should allow us to take a closer look at this for you.
You are the best!!! that is working perfectly!!! thank you!!
one more question: is there a way to set the lenght of the address search bar as 100% of the map width?
thank you very much!
Hi @angelolazzari,
Thank you so much for getting back to me.
I am glad to hear this has helped.
You could try something like the below, please navigate to -> Maps -> Settings -> Advanced Settings -> Copy the below custom CSS:
.wpgmza-modern-store-locator {
left: 6px;
width: 88%;
left: 5px !important;
}
.wpgmza-modern-store-locator > .wpgmza-inner {
width: 100%;
padding: 0.6em !important;
}
#addressInput {
width: 82% !important;
}
Paste this in the Custom CSS field and save the settings.
This is just a quick CSS adjustment that can obviously be added to and adjusted.
For any further customization, might I kindly ask you to get in touch with us directly via our website?
ok ok thank you!!!
Angelo