You are viewing limited content. For full access, please sign in.

Question

Question

Using Google Maps API in the Modern Designer

asked on January 27

We have forms in the Classic designer that use Google Maps API but I wanted to see if anyone has had success recreating this in the Modern designer?

Currently trying to recreate this simple example in the Modern by replacing this line:

map = new Map(document.getElementById("map"), {

with a dummy Div element:

const newDiv = document.createElement('div');
let map = new google.maps.Map(newDiv, {

and trying to use LFForm.changeFormSettings to copy this map element over to a HTML field. I have used similar workaround before for Modern but I am not having any success so far with Google Maps. I tried to use this method in the Classic to see if it works at all but the newDiv does not have any of the actual Google Maps elements assigned to it afterwards. Has anyone had success with Google Maps API in the Modern? Any ideas?

0 0

Replies

replied on October 2

Looks like you did not get any replies, did you find a solution or work around.

I want to be able to pass fields latitude and longitude to something that will enable me to show a map on a form ?

0 0
replied two days ago

I spoke to Laserfiche and there is no way to currently display a Google Maps in the Modern. For your problem, if you just need a static map it may be possible. Try it in a Custom HTML field to test with hard coded lat/lng and see if it can display.

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.