Thanks Adam. I will try it when next in the office. 

Sent from my iPad

> On 24 Jan 2017, at 19:29, Adam Cox <[email protected]> wrote:
> 
> Hi Andy and Lucy,
> 
> There is a way to get around this, though it involves modifying a javascript 
> file that currently exists in the virtual environment. Just like editing the 
> data entry forms, you will need to copy that file from the virtual 
> environment and paste it into your own app. That way, if things get messed 
> up, you can just delete the file from your app and Django will revert to 
> using the original one in your virtual environment.
> 
> 1) Find this file, 
> ENV\..\site-packages\arches_hip\media\js\resource-report.js and copy it to 
> the corresponding location in your app.
> 2) On line 89 you'll see the zoomToResource function, within which you can 
> change the max zoom level (by default it is 18). Note you'll have to set it 
> on lines 99 and 101, to handle multiple geometries and single geometries.
> 
> It should be that simple. You should make sure you hard refresh your browser 
> so the new .js file is used, and if you are serving the app with apache, you 
> may need to run collectstatic.
> 
> Hope that helps!
> Adam
> 
>> On Tue, Jan 24, 2017 at 2:39 AM, 'Lucy FJ' via Arches Project 
>> <[email protected]> wrote:
>> Just to say that we have been having problems with the same issue. There 
>> appears to be no way to change the zoom level only on the report. 
>> 
>> 
>>> On Monday, January 23, 2017 at 8:20:04 PM UTC+2, Andy Graham wrote:
>>> Hello, have been trying to figure this out myself and haven't been able to 
>>> crack it so was hoping for some help.  On a report for a resource that has 
>>> a single point as its geometry the map defaults to the max zoom level 
>>> defined in the settings.py.  This makes the map a bit worthless to help 
>>> place that point into geographical context.  Is there anyway to keep the 
>>> max zoom for all maps at what is defined in the settings.py, but force 
>>> report maps to default to a different zoom level specifically for point 
>>> geometry (would still need to auto scale the zoom level based on the extent 
>>> of other geometry types if possible).
>>> 
>>> Thanks.
>>> 
>>> Andy
>> 
>> -- 
>> -- 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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to