simplified check for featureType in DrawText.js