Skip to content

Instantly share code, notes, and snippets.

@bachhm-dev
Created April 16, 2020 10:16
Show Gist options
  • Save bachhm-dev/8518c0c2568a0f11cf62549e2c223682 to your computer and use it in GitHub Desktop.
Save bachhm-dev/8518c0c2568a0f11cf62549e2c223682 to your computer and use it in GitHub Desktop.
vue-arcgis-map
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
//Arcgis javascript api
import { loadScript } from 'esri-loader';
Vue.config.productionTip = false;
// preload the ArcGIS API
const options = {
url: 'https://js.arcgis.com/3.23/',
};
loadScript(options)
new Vue({
router,
store,
render: h => h(App)
}).$mount("#app");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment