locked
How can i set custom pushpin and infobox in clustering map in V8 Module ? RRS feed

  • Question

  • In V7 Bing map you have provided functionality of custmally add pushpin and  infobox  in clustering map  on below link

    https://www.bingmapsportal.com/isdk/ajaxv7#LoadingDynamicModule3

    But in V8 bing map you didnt provided how can i set Pushpin and infobox in clustering map .

    http://www.bing.com/api/maps/sdk/mapcontrol/isdk#clusteringMeanAverage+TS

    Can you please provide sample code for pushpin and info box in clustering map ?

    Thanks in advance


    • Edited by Mayur45 Thursday, April 28, 2016 7:09 AM
    Thursday, April 28, 2016 7:07 AM

Answers

  • For individual pushpins you can customize them before you add them to the clustering layer and the clustering layer will simply render them. No need for a callback like in the old v7 module. A callback is still used when customizing clustered pushpins.

    For infoboxes simply add a click event to the pushpins and clusters and when the event fires you can load an infobox. This is really simply. Also, you only need one infobox in an app and simply update it's content based on what has been clicked.

    Full documentation can also be found here: https://msdn.microsoft.com/en-us/library/mt712542.aspx


    [Blog] [twitter] [LinkedIn]


    Thursday, April 28, 2016 8:37 PM