To define a simple link for any data plot,
just define the link attribute for the
<entity> element as under:
<entity... value='2235' ... link='ShowDetails.asp%3FId%3D45'
...>
With the above XML, the entity
when clicked, will take to the page ShowDetails.asp?Id=45.
Similarly, to define a link for a marker, add the link attribute to <marker> element (which is child of <application> element). Note that links need to be applied to marker application elements and not marker definition elements.
As you will note, the above link has been URL Encoded. FusionMaps XT expects
all the links in URL Encoded format, if you have characters special characters
(like ?,&, etc.) in your link. When the user clicks on the link, FusionMaps XT
decodes it and invokes ShowDetails.asp?Id=45.
All the server side scripting languages provide
a generic function to URL Encode any string - like in ASP and ASP.NET,
we've Server.URLEncode(strURL) and so on.
|