Clipping basemap, arcgis api

956
2
04-15-2017 07:42 AM
JędrekMarkowski
New Contributor II

Hello, thanks for answering my previous question.

I need to clip my basemap only to 1 country, is there any way to load custom map, where will be only 1 country(argcis api, javascript)?  

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

Jędrek,

   Not that I am aware of. If you are using the 4.x api you can set map contraints but not actually clip the basemap.

0 Kudos
SteveCole
Frequent Contributor

The poor man's way of doing this would be to make a polygon dataset of the entire world and "burn" in the boundary of your country of choice. Publish a service where the country has been removed via queryDefinition and then symbolize the remaining polygon (the rest of the world) using a white fill. When adding that service to your map, make sure that it is at the bottom layer of your JS map and now you have a basemap clipped to a county's boundary.

Steve