Thanks for the suggestions, Cyrus. I'll have a look at the code and see 
what I can do.

Regards,
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 <daosborne....@gmail.com 
> <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 arches...@googlegroups.com <javascript:>. To 
>> unsubscribe, send email to arches...@googlegroups.com <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 arches...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. 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 archesproject+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to