def marker_pos(mdata): lat, lon = map(float, (mdata['latitude'], mdata['longitude'])) x,y = iowa_relative((lat, lon)) x,y = x-.5, y-.5 x,y = x*.96, y*.99 return (x, y, 0.001)
def marker_pos(mdata): lat, lon = map(float, (mdata['latitude'], mdata['longitude'])) x,y = iowa_relative((lat, lon)) return (x - .5, y - .5, 0.025)