Hi Cyrus

I'm finally revisiting our need for a new gazetteer service to replace the 
Mapbox one. I have an instance of Gisgraphy running in a Docker container 
but although I took your 'even easier' approach by modifying a local copy 
of the mapbox.js geocoder, I can't seem to override Arches using the Mapbox 
service. Is there something I need to do to make that local copy take 
effect?

David

On Thursday, 25 April 2019 19:43:55 UTC+1, Cyrus Hiatt wrote:
>
> Hi David - 
>
> The search box uses the mapbox geocoder by default. There are a few ways 
> that you could customize this:
>
> The best, but most difficult approach:
>
> Create a new geocoder by writing a new geocoder component and registering 
> that in Arches.  That would be similar to this file: 
> `arches/app/media/js/views/components/geocoders/mapbox.js`.  Then you would 
> need to create a new record in the geocoders table.  Then you would update 
> the `DEFAULT_GEOCODER` setting in your project's settings file to use the 
> geocoderid for your new record. 
>
>
> The easier approach:
>
> You could add a `js/views/components/geocoders/` directory to your project 
> and create a component similar to: 
> arches/app/media/js/views/components/geocoders/mapbox.js.  You would have 
> to update the `component` field for the default geocoder (Mapbox) in the 
> geocoders database table to point to your new component.
>
>
> Even easier: 
>
> Add a `js/views/components/geocoders/` directory to your project. Copy the 
> `arches/app/media/js/views/components/geocoders/mapbox.js` file into that 
> directory. That should override the file in arches. Then modify it to use 
> whatever geocoding service best suits your needs. The drawback here of 
> course is that you have to remember that the file called 'mapbox' isn't 
> really using mapbox's service, but that might not be a concern for you.
>
>  
>  Hope that helps,
>
> - Cyrus
>
>
>
> On Thu, Apr 25, 2019 at 6:18 AM David Osborne <[email protected] 
> <javascript:>> wrote:
>
>> We use the Mapbox 'Outside' OpenStreetMap layer as our basemap for the 
>> Arches site we are developing for Jersey Heritage. I've been asked why the 
>> search field in the top right hand corner of the map ('Locate a Place or 
>> Address') doesn't include place names on Jersey, apart from names of most 
>> of the twelve parishes on the island. Even Jersey postcodes cannot be 
>> found, although UK ones work — for those who don't know, Jersey is not part 
>> of the United Kingdom.
>>
>> I'm guessing that the search box is linked to a gazetteer database 
>> connected with the OSM basemap. Is it possible to supplement the search 
>> with local place names, if we could obtain a list of them with their 
>> corresponding co-ordinates? In theory, we could even replace the gazetteer, 
>> as we would only be interested in searches for place names within the 
>> island's jurisdiction.
>>
>> Thanks
>> David
>>
>> -- 
>> -- To post, send email to [email protected] <javascript:>. To 
>> unsubscribe, send email to [email protected] <javascript:>. For 
>> more information, visit 
>> https://groups.google.com/d/forum/archesproject?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Arches Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
-- To post, send email to [email protected]. To unsubscribe, send 
email to [email protected]. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/0a3c9977-9817-40ea-a482-94f7408edca8%40googlegroups.com.

Reply via email to