ThinkGeo.com    |     Documentation    |     Premium Support

legendAdornmentLayer example

It seems that none of the MVC example here http://samples.thinkgeo.com/MvcEdition/HowDoISamples/ListPage/ListPageView/?categoryId=AllSamples shows a lgend of layers loaded to the map.

i would like to test if when i drag my mouse over the legend area, it does not trigger an event to drag the map underneath.

It should behave similarly as the map scale control bar.

Thanks,

Hi guangming,

Our adornment layer won’t block event bubbling, it’s not the same like TrackZoomBar, that is a special control.

I review our APIs, there isn’t an API related with this behavior, so I think you should want to implement that in client side by JavaScript code.

Regards,

Don

Could you help me find out the html element that contains the adornment layer? I assume that is a static image. This element’s h-index should be larger than those of map image tiles.

Thanks,

Hi Guangming,

It should be a img like this:

You can view it and modify it in Chrome by click “Inspect” context menu.

Regards,

Don