Extracted marker code out of maps to make maps simpler