This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Aidan Simpson
Posted May 14 - Read on Facebook

hey guys! Quick question about the .html variable. I am trying to insert a div (so I can use the Google Maps API instead of a giant map image). When I use view.html = "<div id="map-canvas"></div>" I get an unexpected identifier syntax error... Any suggestions on how to do this?

1 Comments

Koen Bok

I think it's because you have to "escape" the '"'. So like this:

view.html = "<div id=\"map-canvas\"></div>"

or this

view.html = "<div id='map-canvas'></div>"

Read the entire post on Facebook