Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
Ignite Map
posted

Hi,

Please tweak the sample posted in infragistics site (link given below - which currently displays world map) to display US map alone along with Alaska, Puerto Rico and Hawaii.

https://www.igniteui.com/map/geo-shapes-series

https://www.igniteui.com/map/json-binding

 Our requirement is to display US map alone and show all US states including Alaska, Puerto Rico and Hawai, States should be colored and should be clickable. We should be able to display text when hover on state.

Thanks

Ashok

  • 49378
    posted

    Hello Ashok,

    Based on your description, you will need to look for a custom shape file covering the desired geographic locations. The IgniteUI samples contain some examples (world countries, cities and North America primary roads) which are provided as an illustration to the capabilities of the map component. I would suggest therefore looking for a shape file covering the desired regions.

    Regarding showing text on shape hover, a tooltip template may be used as already shown at:

    https://www.igniteui.com/map/geo-shapes-series

    The click of a shape can be handled via the SeriesMouseLeftButtonDown event:

    https://www.igniteui.com/help/api/2014.1/ui.igMap

    Please feel free to contact me if you need more information.