opencontent/ocmap-ls

Opencontent Map

Installs: 113

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:ezpublish-legacy-extension

1.2 2019-05-23 11:21 UTC

This package is auto-updated.

Last update: 2020-01-12 09:56:32 UTC


README

Per abilitare la ricerca su mappa

Verificare la presenza della libreria spatial4j-0.4.1.jar

Aggiungere in schema.xml di solr all'interno di types

<fieldType name="location_rpt"   class="solr.SpatialRecursivePrefixTreeFieldType"
   spatialContextFactory="com.spatial4j.core.context.jts.JtsSpatialContextFactory"
   distErrPct="0.025"
   maxDistErr="0.000009"
   units="degrees"
/>

Aggiungere in schema.xml di solr all'interno di fields

<dynamicField name="*_rpt" type="location_rpt"  indexed="true"  stored="true" multiValued="true"/>
<dynamicField name="*____rpt" type="location_rpt"  indexed="true" stored="true" multiValued="true"/>

Aggiungere in ezfind.ini

[SolrFieldMapSettings]
CustomMap[ocdrawmap]=ocSolrDocumentFieldOCDrawMap
DatatypeMap[ocdrawmap]=location_rpt