var locator = new VEGeocoder({bingMapsKey: 'yourkeyhere'}); locator._url.path = locator._url.path.replace("http", "https");
esriRequest.setRequestPreCallback(myCallbackFunction); ... function myCallbackFunction(ioArgs) { if (ioArgs.url == "http://serverapi.arcgisonline.com/veadaptor/production/services/geocode/geocode") { ioArgs.url = "https://serverapi.arcgisonline.com/veadaptor/production/services/geocode/geocode"; } // don't forget to return ioArgs. return ioArgs; }
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.