World map - change color

5 replies · opened Dec 29, 2016

Bbaddream3Dec 29, 2016

Hi,

is there some chance to change color of world map (i just need color some states)?

SSemicolon WebSTAFFJan 2, 2017

Hello,

Can you please let us know which Map you are using (vMaps or Google Maps) so that we can provide you with a more accurate solution for this. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

Bbaddream3Jan 3, 2017

My bad, sorry. Of course I thought vMaps.

SSemicolon WebSTAFFJan 4, 2017

Hello,

We have tried working on this, however, it seems that it is currently not supported. Here is the Full List of Configuration Options available: https://github.com/manifestinteractive/jqvmap#configuration-settings with the vMaps. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

Bbaddream3Jan 4, 2017

I think that solution is "selectedRegions".

SSemicolon WebSTAFFJan 5, 2017

Hello,

You can Definitely use the selectedRegions Option to Select certain Regions with a Single Color on the Map based on the ISO Codes provided here: https://github.com/manifestinteractive/jqvmap/blob/master/REGIONS.md . Example:

$('#vmap').vectorMap({
	map: 'world_en',
	backgroundColor: null,
	color: '#ffffff',
	hoverOpacity: 0.7,
	selectedColor: '#666666',
	enableZoom: true,
	showTooltip: true,
	selectedRegions: ['US', 'GB', 'AU'],
	multiSelectRegion: true,
	values: sample_data,
	scaleColors: ['#C8EEFF', '#006491'],
	normalizeFunction: 'polynomial'
});

Hope this Helps! Thanks for your Patience.

Do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard