dwalker

Highlighting an Entity

Recommended Posts

I am working on a mapping application that makes use of both FusionMaps and FusionCharts.  When I click on a region within the map, there are two charts that show details for the region selected.  When the region I selected has data for the subregions (for example we have state information for USA), then the map will drill through to the regions map.  If there is not any lower level detail (we don't have detailed information for Chinese provinces), the application will stay at the higher level for the map.  So, for China, I would stay on the world map and just update the Chart to have China data.

 

What I am trying to do is highlight a selected region if I am not drilling into the lower level map.  So, when I click on China, the charts should be updated to the data for China, the map would stay on the World Map, but China would be highlighted in some way.  In my data feed for the map, I am able to set the entity properties for the selected region, but from the documentation it looks like I am just able to change the color or alpha to make the region stand out.  I don't want to do either of those because that makes it harder to tell what color the region is and therefore the user wouldn't know the approximate value for the data for that region.  Is there any other way to highlight an individual region?  Maybe if I could apply a style to a single entity on a map rather than all entities?  

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

With regard to your query, please note that directly it is not possible to highlight the selected region, for which the lower level map is shown.

 

However, if you are using linked map feature to drill down to child map, you will have some linked chart events control (for Example: BeforeLinkedItemOpen). So, on click of the map region, you could call your custom function on firing the "BeforeLinkedItemOpen" event and set that particular entity element with your desired custom color in "color" attribute and then update the entire XML data.

 

For more information on "Providing and updating map data", please visit the link: http://docs.fusioncharts.com/maps/Contents/javascript/js_change_data.html

 

Hope this helps!

Share this post


Link to post
Share on other sites

Well, I am looking for some way to highlight the region without changing the color as that makes it more difficult for somebody looking at the map to determine what range the region falls into.  I am already able to change the color and the alpha for the selected region with my data feed.  However neither of those options look quite right.  If I could highlight the region using a style, then I think adding a glow to the region would work.  But, I don't see any way to accomplish that.

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Yes, FusionMaps XT does not support the feature of using styles to highlight the particular region after drilling down to child map, as of now.

 

The possible alternative currently we can suggest is to feed the data each time with the required changes in the XML/JSON data after clicking on the map region.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now