Details

      Description

      OpenStreetMap

      Problem

      The OpenStreetMap element in the webcontent structure and template works fine in my local developer environment. But in production with https it don't work.

      The URL for the leaflet don't work for https:
      https://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css
      https://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js

      There is a JavaScript error too.

      ReferenceError: L is not defined
      ...eateMap:function(a,b){var f={center:a,layers:[L.tileLayer(this.get("tileURI"))]
      

      If I save a webcontent with a gelocale, the indexer has an error and the webcontent isn't indexed.

      13:09:04,423 ERROR [liferay/search_writer/SYSTEM_ENGINE-50][ElasticsearchUpdateDocumentCommandImpl:50] failure in bulk execution:_[1]: index [liferay-20202], type [LiferayDocumentType], id [com.liferay.journal.model.JournalArticle_PORTLET_47646], message [MapperParsingException[failed to parse]; nested: ElasticsearchParseException[field [lat] missing];]_[3]: index [liferay-20202], type [LiferayDocumentType], id [com.liferay.journal.model.JournalArticle_PORTLET_46920], message [MapperParsingException[failed to parse]; nested: ElasticsearchParseException[field [lat] missing];] [Sanitized]
      13:09:04,474 ERROR [liferay/search_writer/SYSTEM_ENGINE-53][ElasticsearchUpdateDocumentCommandImpl:50] failure in bulk execution:_[1]: index [liferay-20202], type [LiferayDocumentType], id [com.liferay.journal.model.JournalArticle_PORTLET_47646], message [MapperParsingException[failed to parse]; nested: ElasticsearchParseException[field [lat] missing];]_[3]: index [liferay-20202], type [LiferayDocumentType], id [com.liferay.journal.model.JournalArticle_PORTLET_46920], message [MapperParsingException[failed to parse]; nested: ElasticsearchParseException[field [lat] missing];] [Sanitized]
      13:09:04,551 ERROR [liferay/search_writer/SYSTEM_ENGINE-50][ElasticsearchUpdateDocumentCommandImpl:50] failure in bulk execution:_[1]: index [liferay-20202], type [LiferayDocumentType], id [com.liferay.journal.model.JournalArticle_PORTLET_47646], message [MapperParsingException[failed to parse]; nested: ElasticsearchParseException[field [lat] missing];]_[3]: index [liferay-20202], type [LiferayDocumentType], id [com.liferay.journal.model.JournalArticle_PORTLET_46920], message [MapperParsingException[failed to parse]; nested: ElasticsearchParseException[field [lat] missing];] [Sanitized]
      13:09:04,606 ERROR [liferay/search_writer/SYSTEM_ENGINE-54][ElasticsearchUpdateDocumentCommandImpl:50] failure in bulk execution:_[1]: index [liferay-20202], type [LiferayDocumentType], id [com.liferay.journal.model.JournalArticle_PORTLET_47646], message [MapperParsingException[failed to parse]; nested: ElasticsearchParseException[field [lat] missing];]_[3]: index [liferay-20202], type [LiferayDocumentType], id [com.liferay.journal.model.JournalArticle_PORTLET_46920], message [MapperParsingException[failed to parse]; nested: ElasticsearchParseException[field [lat] missing];] [Sanitized]
      

      Reproduce

      1. Use a Liferay 7 GA 2 with https
      2. Create webcontent structure with geolocation
      3. Create webcontent template with geolocation
      4. Create a journal article of the new structure
      5. => The map is black

      Google Maps

      Google Maps don't work in dev. and production. In dev it loads the OpenStreetMap.
      But I didn't used a API Key

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 1 day ago

                Packages

                Version Package
                7.0.0 DXP FP2
                7.0.0 DXP SP1
                7.0.3 CE GA4
                7.1.X
                Master