Code added for reading JSON from the url or creating JSON from string and
data in order to create the basemap of the webmap.
create an instance of webmap.