X3 is "converting" a Google Map parameter instead of using it as a parameter
Posted: 15 Apr 2023, 18:20
Hello again, Karl,
I am having a problem with Settings|Content, in that X3 is changing my code when I click Save.
On THIS page, I have manually added a Map Button directly below the top image that's defined in Settings|Content.
I have defined that Map Button with the following code, and please note that I do NOT have the items on separate lines on my site... I have pasted the code here on separate lines only for clarity for you to see what I have:
The above code works fine, however, when I add another option, when I click Save, X3 is corrupting my code. I am trying to add a 4th parameter as follows:
That ¢er parameter is supposed to center the map on the page, instead of the page being centered on the position marker, as shown HERE.
However, when I enter in that ¢er=49.70064490823049,-124.93261425183724 parameter & then click on Save, X3 saves it as ¢er=49.70064490823049,-124.93261425183724, so what I end up with is:
X3 is converting the first 5 characters of the ¢er parameter to the ¢ (cent) symbol :thinking:.
Am I able to get around this problem somehow, perhaps by using Custom CSS or something else? Any suggestions for a remedy would be greatly appreciated.
Thank you in advance & have yourself a great weekend, sir.
Regards,
John
I am having a problem with Settings|Content, in that X3 is changing my code when I click Save.
On THIS page, I have manually added a Map Button directly below the top image that's defined in Settings|Content.
I have defined that Map Button with the following code, and please note that I do NOT have the items on separate lines on my site... I have pasted the code here on separate lines only for clarity for you to see what I have:
Code
<button data-href="https://www.google.com/maps/embed/v1/?api=1&query=49.713237654196405,-124.90137968340973" data-embed-modal="https://www.google.com/maps/embed/v1/place?q=49.713237654196405,-124.90137968340973
&key=AIzaSyDRp6xla9SxUmTBu6l_kprhjjI9e5-EVZk
&zoom=15
&maptype=satellite"
class="button small button-map" data-lang="map"></button>
Code
&key=AIzaSyDRp6xla9SxUmTBu6l_kprhjjI9e5-EVZk
&zoom=15
&maptype=satellite
¢er=49.70064490823049,-124.93261425183724"
However, when I enter in that ¢er=49.70064490823049,-124.93261425183724 parameter & then click on Save, X3 saves it as ¢er=49.70064490823049,-124.93261425183724, so what I end up with is:
Code
<button data-href="https://www.google.com/maps/embed/v1/?api=1&query=49.713237654196405,-124.90137968340973" data-embed-modal="https://www.google.com/maps/embed/v1/place?q=49.713237654196405,-124.90137968340973
&key=AIzaSyDRp6xla9SxUmTBu6l_kprhjjI9e5-EVZk
&zoom=15
&maptype=satellite
¢er=49.70064490823049,-124.93261425183724"
class="button small button-map" data-lang="map"></button>
Am I able to get around this problem somehow, perhaps by using Custom CSS or something else? Any suggestions for a remedy would be greatly appreciated.
Thank you in advance & have yourself a great weekend, sir.
Regards,
John