简体   繁体   中英

How i can add a hyperlink in the name of my custom map? google maps api v3

I want to add a hyperlink in the name of my custom map. For example, just now I add a name of my map of this way:

var mapQAPType = new google.maps.ImageMapType({
  getTileUrl: customGetTileURL,
  tileSize: new google.maps.Size(256, 256),
  maxZoom: 5,
  minZoom: 2,
  name: "Cluster Visualization",
  tileSize: new google.maps.Size(256,256),
});

But I want to, this name like a hyperlink. How I can do this? regards.

Example image of the name of the map

You need to use

<![CDATA[ TEXT+URL  ]]>

Read up on https://developers.google.com/kml/documentation/extendeddata for further information.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM