Treat marker clicks and line/polygon clicks differently