Giter Site home page Giter Site logo

benelan / arcgis-esm-samples Goto Github PK

View Code? Open in Web Editor NEW
22.0 4.0 7.0 1.57 MB

Samples that integrate the @arcgis/core build of the ArcGIS Maps SDK for JavaScript with various Server Side Rendering frameworks.

Home Page: https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/ssr-esm/

License: Other

JavaScript 49.74% CSS 11.17% Vue 15.00% HTML 2.83% Svelte 21.26%
arcgis esmodules nuxtjs nextjs ssr esri gis esm svelte sveltekit

arcgis-esm-samples's People

Contributors

benelan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

arcgis-esm-samples's Issues

Element is not defined

Hi, I've try to resolve my problem in nextjs with this method but still have same error
error - node_modules\@arcgis\core\core\domUtils.js (5:446) @ eval ReferenceError: Element is not defined
Could you help me?

NextJS apply styles only to map and not globally

When following the nextJS example, the way the css is being loaded into the module still applies the styles globally. This causes all font's on our app to become the font within that stylesheet. Do you have an example on how to only apply the styles to the map component?

ArcGis API token with Nextjs

Hi,

thx for the template of ArcGis and Next.js

can you help me please to understand what environment variable or approach should i take, when using the API key?
esriConfig.apiKey = "YOUR_API_KEY";
https://developers.arcgis.com/javascript/latest/add-a-feature-layer/

I know that next js has configured .env.local

but I tried to call the API key through the function getStaticProps and didn't work...
https://nextjs.org/docs/basic-features/environment-variables
Screenshot 2022-12-23 at 11 40 52

but if I do NEXT_PUBLIC it works, mean that the API key can't be used on the server side and requires it at the browser client side? Or maybe I don't know how to use static props... (an example will be useful in your repo)

Please help ^_^ want to make sure not exposing my key public
ArcGIS Maps SDK for JavaScript 4.25
Add a feature layer | Overview | ArcGIS Maps SDK for JavaScript 4.2...
Documentation site for ArcGIS Maps SDK for JavaScript on ArcGIS Developers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.