#82 closed defect (fixed)
jumpto_scales param
Reported by: | bfischer | Owned by: | theduckylittle |
---|---|---|---|
Priority: | major | Milestone: | 2.6 |
Component: | GeoMOOSE/JS | Version: | 2.6 |
Keywords: | Cc: | bfischer |
Description ¶
When I try to modify the scales in the jumpto_scales param in the mapbook it does not seem to read those. It seems it is referring back to config.js. Is this a bug?
Change History (6)
comment:1 by , 13 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
comment:2 by , 13 years ago
Status: | assigned → testing |
---|
comment:3 by , 13 years ago
Status: | testing → needs_work |
---|
I am not sure but this does not seem to be fixed. I have placed the following in my local mapbook:
<param name="jumpto_scales"><![CDATA[
{
"1:100000" : 100000,
"1:50000" : 50000,
"1:24000" : 24000,
"1:15000" : 15000,
"1:10000" : 10000,
"1:5000" : 5000,
"1:100ft" : 1200
}
]]></param>
The jump to parameters exist and display in the demo. However, they do not jump to the correct scales. This also happens with trunk demo. For example, zooming to 1:10000 jumps to -> 1:6771 and jump to 1:100000 jumps to -> 1:108336. Not sure what is up. But... jump to still appears to have problems.
comment:4 by , 13 years ago
Status: | needs_work → testing |
---|
This is because OpenLayers will jump to the nearest fixed-scale. Which is essentially locked down right now because we're serving up everything as web Mercator. If you had a custom projection and/or turned off "fixed scales" everything would jump-to correctly.
comment:5 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | testing → closed |
Dan - you are correct! I inserted the parameter:
<param name="fractional_zoom">true</param>
And it all works fine.
Thanks!
Dean
The scale jumper UI element was being drawn *before* the CONFIGURATION had the chance to be updated by the mapbook. Also, improved parsing in the mapbook by using JSON for "object" type configuration sections. This means no more apostrophes (') in the <param> values when defining an object, only quotes (").
r783 and r785