[Arches] Re: Adding features to mapbox (scale bar)

2020-05-22 Thread Mahmoud Abdelrazek
Hi, 

I have tried editing the js file in the static directory directly, cleared 
the cache and the scale bar showed up. 

Thank you so much for help. 
Mahmoud 

On Wednesday, April 29, 2020 at 9:47:32 AM UTC+2, 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 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/a8cfc565-cc8c-4f65-9a2c-4da91e4df55e%40googlegroups.com.


Re: [Arches] Re: Adding features to mapbox (scale bar)

2020-05-04 Thread Mahmoud Abdelrazek
Hi Cyrus,

Thank you so much for your help. I did clear the cache but unfortunately, 
it didn't help. 

The edit is mainly on core arches then carried out to the project through 
*collectstatic 
*command. I did trace it and found the same edit in the project files 
after. 

Thank you again, 
Best regards, 
Mahmoud 

On Sunday, May 3, 2020 at 6:07:30 PM UTC+2, Cyrus Hiatt wrote:
>
> Hi Mahmoud - 
>
> You've probably already tried clearing you browser's cache, but in case 
> you haven't that might be worth trying.
>
> If that doesn't help, I'm curious whether you edited the file in core 
> arches, or if you are overriding the file from within your project?
>
> Kind regards,
>
> - Cyrus
>
>
>
> On Wed, Apr 29, 2020 at 3:30 AM Mahmoud Abdelrazek  > wrote:
>
>> Hi Reuben, 
>>
>> Than you very much for your help. 
>> I performed the static files update and restarted the server. Django 
>> copied the js file to the static directory. I checked the static directory 
>> and confirmed that the js file was replaced. However, the scale bar still 
>> didn't show up on the map.
>> Any thoughts on why that might be? 
>>
>> Thank you again for your help, 
>> Mahmoud 
>>
>> On Wednesday, April 29, 2020 at 11:14:56 AM UTC+2, Mahmoud Abdelrazek 
>> wrote:
>>>
>>> Hi Reuben, 
>>>
>>> Thank you for your help. I have not tried to restart the server nor to 
>>> update the static files. I will try this and report back here. 
>>>
>>> Thank you again,
>>> Mahmoud 
>>>
>>> On Wednesday, April 29, 2020 at 10:00:23 AM UTC+2, Reuben Osborne wrote:

 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 arches...@googlegroups.com . To 
>> unsubscribe, send email to arches...@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 arches...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/archesproject/5fb03288-5509-41a3-b572-1293c79d2c9f%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
-- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/050ea72f-98f5-45c4-af0a-b8ff4841b45a%40googlegroups.com.


Re: [Arches] Re: Adding features to mapbox (scale bar)

2020-05-03 Thread Cyrus Hiatt
Hi Mahmoud -

You've probably already tried clearing you browser's cache, but in case you
haven't that might be worth trying.

If that doesn't help, I'm curious whether you edited the file in core
arches, or if you are overriding the file from within your project?

Kind regards,

- Cyrus



On Wed, Apr 29, 2020 at 3:30 AM Mahmoud Abdelrazek 
wrote:

> Hi Reuben,
>
> Than you very much for your help.
> I performed the static files update and restarted the server. Django
> copied the js file to the static directory. I checked the static directory
> and confirmed that the js file was replaced. However, the scale bar still
> didn't show up on the map.
> Any thoughts on why that might be?
>
> Thank you again for your help,
> Mahmoud
>
> On Wednesday, April 29, 2020 at 11:14:56 AM UTC+2, Mahmoud Abdelrazek
> wrote:
>>
>> Hi Reuben,
>>
>> Thank you for your help. I have not tried to restart the server nor to
>> update the static files. I will try this and report back here.
>>
>> Thank you again,
>> Mahmoud
>>
>> On Wednesday, April 29, 2020 at 10:00:23 AM UTC+2, Reuben Osborne wrote:
>>>
>>> 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 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/archesproject/5fb03288-5509-41a3-b572-1293c79d2c9f%40googlegroups.com
> 
> .
>

-- 
-- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/CAHVjc3WuivRk2TOfmVhHitUN4NEB%3DPfSQbGdRHuPm-6rXvOqXg%40mail.gmail.com.


[Arches] Re: Adding features to mapbox (scale bar)

2020-04-29 Thread Mahmoud Abdelrazek
Hi Reuben, 

Than you very much for your help. 
I performed the static files update and restarted the server. Django copied 
the js file to the static directory. I checked the static directory and 
confirmed that the js file was replaced. However, the scale bar still 
didn't show up on the map.
Any thoughts on why that might be? 

Thank you again for your help, 
Mahmoud 

On Wednesday, April 29, 2020 at 11:14:56 AM UTC+2, Mahmoud Abdelrazek wrote:
>
> Hi Reuben, 
>
> Thank you for your help. I have not tried to restart the server nor to 
> update the static files. I will try this and report back here. 
>
> Thank you again,
> Mahmoud 
>
> On Wednesday, April 29, 2020 at 10:00:23 AM UTC+2, Reuben Osborne wrote:
>>
>> 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 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/5fb03288-5509-41a3-b572-1293c79d2c9f%40googlegroups.com.


[Arches] Re: Adding features to mapbox (scale bar)

2020-04-29 Thread Mahmoud Abdelrazek
Hi Reuben, 

Thank you for your help. I have not tried to restart the server nor to 
update the static files. I will try this and report back here. 

Thank you again,
Mahmoud 

On Wednesday, April 29, 2020 at 10:00:23 AM UTC+2, Reuben Osborne wrote:
>
> 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 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/6d9ed98b-4727-40a1-a968-e6a8a2209099%40googlegroups.com.


[Arches] Re: Adding features to mapbox (scale bar)

2020-04-29 Thread Reuben Osborne
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 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/dfa9155f-5184-45e6-94a1-4cbce299a33f%40googlegroups.com.