Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display of map #127

Open
AppWerft opened this issue Mar 15, 2018 · 0 comments
Open

Display of map #127

AppWerft opened this issue Mar 15, 2018 · 0 comments

Comments

@AppWerft
Copy link
Contributor

AppWerft commented Mar 15, 2018

I modified the snippet in Private/Partials/Facets/Facet/Map.html

<s:page.script name="find_geohash">
        tx_find_facetMap.init ({
                container: jQuery('.facet-id-{facetInfo.id} .mapContainer')[0],
                queryURLTemplate: <f:format.htmlentitiesDecode>{s:format.json(data:"{f:uri.action(
                        addQueryString:TRUE,
                        arguments:'{
                                q:\'{raw:\"###TERM###\"}\',
                                count:1000
                        }',
                        action:'index',
                        pageType:'1369315139',
                        format:'data',
                        noCacheHash:'1'
                )}")}</f:format.htmlentitiesDecode>,
                facetData:<f:format.htmlentitiesDecode>{s:format.json(data:facetData.values)}</f:format.htmlentitiesDecode>,
                facetFetchMaximum: {facetInfo.fetchMaximum}
        });
</s:page.script>

to avoid the V8 issue. Then I get:

<script type="text/javascript">
	tx_find_facetMap.init ({
		container: jQuery('.facet-id-Veröffentlichungkarte .mapContainer')[0],
		queryURLTemplate: "index.php?id=1&type=1369315139&tx_find_find%5Bq%5D%5Braw%5D=%23%23%23TERM%23%23%23&tx_find_find%5Bcount%5D=1000&tx_find_find%5Baction%5D=index&tx_find_find%5Bcontroller%5D=Search&tx_find_find%5Bformat%5D=data",
		facetData:{"53.558616,9.862081":970,"53.558908,9.981517":439,"53.562536,9.989055":50,"53.563306,9.987427":106,"53.565342,9.984443":179,"53.565352,9.984444":157,"53.565669,9.984833":3,"53.566256,9.983533":120,"53.566570,9.984491":2,"53.566899,9.987884":118,"53.567062,9.985248":107,"53.567075,9.985229":46,"53.567358,9.984314":74,"53.567562,10.031269":1,"53.567894,9.978141":1014,"53.567963,9.974313":518,"53.569217,9.991165":24,"53.569647,9.977828":12,"53.570587,9.998960":21,"53.590312,9.978455":2992,"53.599532,9.932600":176},
		facetFetchMaximum: 1000
	});
</script>

On the map I see water at end of the world (lat:0,lng:180).
The comma separated format of geo position is solr standard.
What format of geo will aspected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant