javascript - Adding custom marker text to Google Map -


i'm creating new website new law office.

i followed google api embedding maps. added address, add name of firm map... can see in map, doesn't capture name:

<iframe width="600" height="450" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?key=myapikey&q=883%20farmington%20avenue%2c%20berlin%2c%20ct%2006037%2c%20united%20states"></iframe> 

enter image description here

so, tried adding name before address in iframe:

q=jill+levin+law,address here...

but i'm guessing keyword levin pick ups matching firm, soulsby & levin, llc... though haven't changed address

<iframe width="600" height="450" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?key=myapikey&q=jill+levin+law,883%20farmington%20avenue%2c%20berlin%2c%20ct%2006037%2c%20united%20states"></iframe> 

enter image description here

even google api picks wrong 1 based on keyword:

enter image description here

how i:

  • have google map pick correct name of office
  • if office name hasn't been defined yet, how can add text name top of marker?

when add marker map can put title marker.

use code it:

map.addmarker(new markeroptions().title("office name")); 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -