Uploaded image for project: 'Maps'
  1. Maps
  2. MAPS-49

Error when adding a "Maps" service

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.5.0
    • None
    • None
    • 4.4 M2
    • 4.4 M3

      Following error is displayed when adding a "Map" service 

      Chrome : 

      TypeError: Cannot read property 'latitude' of null
      TypeError: Cannot read property 'latitude' of null
      at constructor._initBox (https://demo.ametys.org/nightly-intranet-cms/plugins/maps/resources/js/Ametys/plugins/maps/MapServiceActions.js:252:26)
      at Array.configureCallback (https://demo.ametys.org/nightly-intranet-cms/plugins/maps/resources/js/Ametys/plugins/maps/MapServiceActions.js:93:4)
      at constructor._configureFormCb (https://demo.ametys.org/nightly-intranet-cms/plugins/maps/resources/js/Ametys/plugins/maps/MapServiceActions.js:171:4)
      at constructor.<anonymous> (https://demo.ametys.org/nightly-intranet-cms/plugins/extjs7/resources/ext-all.js:7365:28)
      at constructor.<anonymous> (https://demo.ametys.org/nightly-intranet-cms/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:454:22)
      at Array.forEach (<anonymous>)
      at Object.ExtArray.forEach (https://demo.ametys.org/nightly-intranet-cms/plugins/extjs7/resources/ext-all.js:3346:17)
      at constructor._callProcessed (https://demo.ametys.org/nightly-intranet-cms/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:451:13)
      at constructor.<anonymous> (https://demo.ametys.org/nightly-intranet-cms/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:904:37)
      at Array.forEach (<anonymous>)

      Firefox :

      TypeError: this._specificElementDefinitions.center['default-value'] is null
      _initBox@https://demo.ametys.org/nightly-intranet-cms/plugins/maps/resources/js/Ametys/plugins/maps/MapServiceActions.js:252:21
      configureCallback@https://demo.ametys.org/nightly-intranet-cms/plugins/maps/resources/js/Ametys/plugins/maps/MapServiceActions.js:93:4
      _configureFormCb@https://demo.ametys.org/nightly-intranet-cms/plugins/maps/resources/js/Ametys/plugins/maps/MapServiceActions.js:171:4
      bind/<@https://demo.ametys.org/nightly-intranet-cms/plugins/extjs7/resources/ext-all.js:7365:28
      _callProcessed/<@https://demo.ametys.org/nightly-intranet-cms/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:454:22
      Ext.Array</ExtArray.forEach<@https://demo.ametys.org/nightly-intranet-cms/plugins/extjs7/resources/ext-all.js:3346:17
      _callProcessed@https://demo.ametys.org/nightly-intranet-cms/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:451:13
      _dispatch/<@https://demo.ametys.org/nightly-intranet-cms/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:904:37
      Ext.Array</ExtArray.forEach<@https://demo.ametys.org/nightly-intranet-cms/plugins/extjs7/resources/ext-all.js:3346:17
      _dispatch@https://demo.ametys.org/nightly-intranet-cms/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:899:25
      _onRequestComplete@https://demo.ametys.org/nightly-intranet-cms/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:785:17
      callback@https://demo.ametys.org/nightly-intranet-cms/plugins/extjs7/resources/ext-all.js:9638:30
      onComplete@https://demo.ametys.org/nightly-intranet-cms/plugins/extjs7/resources/ext-all.js:28413:17
      onStateChange@https://demo.ametys.org/nightly-intranet-cms/plugins/extjs7/resources/ext-all.js:28370:13
      bindStateChange/</<@https://demo.ametys.org/nightly-intranet-cms/plugins/extjs7/resources/ext-all.js:28360:17
      elevate@https://demo.ametys.org/nightly-intranet-cms/plugins/extjs7/resources/ext-all.js:2574:54
      bindStateChange/<@https://demo.ametys.org/nightly-intranet-cms/plugin

          [MAPS-49] Error when adding a "Maps" service

          3 issues since the new way to sax and parse geocode values (CMS-10434) :

          1/ the default value is no more compatible with new format. It should be

          <default-value latitude="0.0" longitude="0.0"/>
          

          instead of

          <default-value>
               <latitude>0.0</latitude>
               <longitude>0.0</longitude>
          </default-value>
          

          2/ the geocode values are now saxed as

          <point latitude="X" longitude="Y"/>
          

          instead of

          <point>
               <latitude>X</latitude>
               <longitude>Y</longitude>
          </point>
          

          3/ the type of marker is now saxed as :

          <type value="marker">Marqueur</type>
          <type value="polygon">Polygone</type>
          

          instead of

          <type>marker</type>
          

          Consequently :

          • the service declaration should be rewritten
          • the XSL for service rendering too
          • the plugin is now incompatible with 4.3.x versions
          • we need a manual of migration for 2.4.0 to 2.5.0 versions

          Laurence Aumeunier added a comment - 3 issues since the new way to sax and parse geocode values ( CMS-10434 ) : 1/ the default value is no more compatible with new format. It should be <default-value latitude= "0.0" longitude= "0.0" /> instead of <default-value> <latitude> 0.0 </latitude> <longitude> 0.0 </longitude> </default-value> 2/ the geocode values are now saxed as <point latitude= "X" longitude= "Y" /> instead of <point> <latitude> X </latitude> <longitude> Y </longitude> </point> 3/ the type of marker is now saxed as : <type value= "marker" > Marqueur </type> <type value= "polygon" > Polygone </type> instead of <type> marker </type> Consequently : the service declaration should be rewritten the XSL for service rendering too the plugin is now incompatible with 4.3.x versions we need a manual of migration for 2.4.0 to 2.5.0 versions

            laurence Laurence Aumeunier
            mfranchet Magali Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: