But this is based on crime enforcement stats, not underlying incidence of the crimes themselves. There are areas of SF (like the park over at Haight and Ashbury) where these laws basically aren't enforced. Thus: perhaps not a great map for where to find drugs.
Prostitution may be similar; there seem to be areas in every city where it's practiced openly and brazenly, which tells me there's a sub rosa understanding between law enforcement and prostitutes.
(Note also that "drugs" here probably means "vials", and "prostitution" here probably means "street hookers").