maybe a JS option object could be created here to configure the map with all required information like base url or options?