Hi Mahmoud,

Have you tried updating the static files on the server? *python manage.py 
collectstatic* and  then *sudo service apache2 restart *to make sure the 
changes are being picked up.

Reuben


On Wednesday, 29 April 2020 08:47:32 UTC+1, Mahmoud Abdelrazek wrote:
>
> Hi, 
>
> I am trying to add a scale bar to the main map in the search window. I 
> think the map is generated from the file *mapbox-gl.js *in the following 
> directory *Lib\site-packages\arches\app\media\js\bindings\mapbox-gl.js 
> *inside 
> the environment. To add a scale bar I added the following line after the 
> map variable is created 
>
> map.addControl(new mapboxgl.ScaleControl(), 'bottom-right');
>
> I tested the code on a local implementation on my computer and it did work 
> fine. I could see the scale bar on the map as ib the included screenshot. 
> However, when applying the same code to an online live server, the map 
> didn't update to include the scale bar. I am not sure why is happening. Am 
> I missing something? 
>
> [image: scale_bar_arches.jpg]
>
>
>
>
>
>
>
>
>
>
>
>
>
> Thank you for your help.
> Mahmoud 
>

-- 
-- 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/dfa9155f-5184-45e6-94a1-4cbce299a33f%40googlegroups.com.

Reply via email to