David, The BaseGeocoderViewModel has the code to do this but it was simple enough to pull it into the esrigeocoder.
See release 1.1 - https://github.com/HistoricEngland/arches-esri-geocoder/releases/tag/1.1 You are limited to the Mapbox layer styling but you can easily set the size and colour of the point. Andy On Tuesday, March 10, 2020 at 8:51:25 PM UTC, David Osborne wrote: > > Hi Andrew > > The ESRI geocoder does what exactly we need and is fast at finding results > after I added the countryCode parameter to the Javascript, so thank you for > mentioning it. > > After a search, we get a red filled circle marking the point. I can't find > where the styling of the marker is defined: is it possible to change it? At > the moment, it's difficult to distinguish the geocoder marker from the > sites in our Heritage Assets overlay, which are almost the same colour and > size. > > David > > On Monday, 2 March 2020 09:04:46 UTC, Andrew Jones wrote: >> >> We created an ESRI geocoder to use their World geocoding service. The >> code and instructions for configuring it are here and might be helpful... >> >> https://github.com/HistoricEngland/arches-esri-geocoder >> >> >> >> On Sunday, March 1, 2020 at 8:55:57 PM UTC, David Osborne wrote: >>> >>> Supplementary question: as the geocoder access is from a fragment of >>> Javascript, I take it that the connection to the geocoder is from a user's >>> browser, rather than from the Arches application itself? >>> >>> 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]> >>>> 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]. 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]. >>>>> 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/a03b31c1-6adc-47f3-b8ec-67e8a95de97e%40googlegroups.com.
