|
|
|
|
|
Select country searching

setCountry function sets the context of the country where the data is searching.

Available parameters:
country{String} ccTLD country code.

var finder = new EMAPI.Finder(map); //create a new instance of the EMAPI.Finder class

finder.setCountry('pl'); //Search country setting as Poland


getCountry function returns the country code ccTLDs currently set for searching.

Available parameters:
{String} ccTLD country code.

var finder = new EMAPI.Finder(map); //create a new instance of the EMAPI.Finder class

alert(finder.getCountry()); //inroduce a window with information about the country where the searching is currently

Example of action:

--> Click here to download the currently set country code <--