As previously announced via banners and our newsletters, support is no longer available through this platform.

For easier navigation, you can still click on "Submit a Ticket" here, choose the appropriate category, and you'll be redirected to the correct support channel for your plugin.

You can still access your previous tickets and browse public tickets, but please note that responding to tickets is no longer possible.

Paid customers: Please log in to your store account for support.

Pre-purchase questions: Use the support widget in the bottom-right corner of our websites:
https://wpamelia.com
https://wpdatatables.com
https://wpreportbuilder.com

Okay
  Public Ticket #3786025
How to render JS and HTML based on DB fields
Closed

Comments

  • Evgeniy Orlov started the conversation

    In my database I have geodata, logitude and latitude for database objects. 

    Now I need to render a  Google Map for each object. It can be done, mostly simple with Maps Embed API and an iframe, or Maps Javascript API and full JS/HTML/CSS code.

    Q: hat are ways to work with multiple transformed values at once?

    For example, like this

    <iframe
      width="450"
      height="250"
      frameborder="0" style="border:0"
      referrerpolicy="no-referrer-when-downgrade"
      src="https://maps.google.com/maps?q={latitude.value},{longitude.value}&hl=de&z=14&output=embed"
      allowfullscreen>
    </iframe>

    Is it a smarter way, to store the code in a separate MySQL column and query longitude/latitude into it?



  •   Evgeniy Orlov replied privately
  •   Miloš replied privately