Apple removed a Hong Kong map application used by pro-democracy protesters, saying it endangered police, after China warned the US tech giant to drop the app.