AnsweredAssumed Answered

Arcgis Api JS dont work in chrome but edge does

Question asked by endlessdsire on Aug 3, 2016
Latest reply on Aug 3, 2016 by endlessdsire



I have a web app hosted in a server that when i use chrome i have the following error.

login.js:20 Uncaught TypeError: Cannot read property 'GraphicsLayer' of undefined


If i tried in m.edge, the app shows w/o problems.


I installed the arcgisapi file in the server, modifying the path (localhost:443 for

on dojo.js and init.js


Also my index file is like this.

<html lang="es">
    <meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" >
    <link rel="shortcut icon" href="">
    <link rel="stylesheet" type="text/css" href="arcgis_js_api/library/3.16/3.16/dijit/themes/tundra/tundra.css" />
    <link rel="stylesheet" type="text/css" href="arcgis_js_api/library/3.16/3.16/esri/css/esri.css" />
    <link rel="stylesheet" type="text/css" href="css/login.css" />
    <link rel="stylesheet" href="js/vendor/font-awesome/css/font-awesome.min.css" />

    <div class="login_wrapper">
      <section id="myLogin" class="myLogin"></section>

      <footer class="login_footer">
        <h4 class="notification-login"></h4>
        <div class="login_footer__div">
            <img class="login_footer__img" src="css/images/chq_i.png" />
            <p class="footer__div__p">&copy; 2016 Planificación y Gestión de la Información Operacional</p>

      <script src="arcgis_js_api/library/3.16/3.16/init.js"></script>
      <script src="js/vendor/jquery-2.2.1.min.js"></script>
      <script src="js/vendor/prefixfree.min.js"></script>
      <script src="js/login.js"></script>

What im doing wrong or what is is happening?

Im using legacy mode to load the code that i need. (like: var graphiclayer = new esri.layers.GraphicLayers())