尝试插入<a href="http://www.chateauversailles.fr/" <="" a=""> into a Google Map InfoWindow

时间:2017-05-02 17:08:37

标签: google-maps

Trying to insert an active link into a Google Marker title using the below code. href

{ title: 'Palace of Versailles, France ', location: { lat: 48.804865, lng: 2.120355 } }

After "Palace of Versailles, France" a href was inserted.

When the marker is clicked on only "Palace of Versailles, France" appears in the title, no link. Inserting text lines other than href works just fine.

I tried several other href formats but no success. Also using css to customize title presentation/format which would not affect href.

1 个答案:

答案 0 :(得分:0)

如果标题中的锚点正确无误,那么在>

之前,您将错过结束</a>

<a href=“http://www.chateauversailles.fr/"></a>