first part of the init implementation
fix for when basemap is a custom defined layer, not an inbuilt one
added ignore settings for when using VS2013