Yes, it does work to limit the initial extent upon loading. And as you
said, the extent changes based upon search results. This works fine.
Thank you.
A problem occurs when a user clicks the "Full Extent" button on the map. I
believe it uses the extent coordinates found in apps/search/js/App-mini.js
GeoNetwork.map.EXTENT=new OpenLayers.Bounds(-82.0,36.0,-69.0,42.5);
The map displayed is cropped at the extents to the West and South (in my
case). It seems to be one zoom level too low. One zoomin level and it
fits perfect. Attached is a graphic showing the map.
- John
***********************************************
John Callahan, Research Scientist
Delaware Geological Survey, University of Delaware
URL: http://www.dgs.udel.edu
*************************************************
On Tue, Aug 28, 2012 at 11:27 AM, Francois Prunayre
<fx.prunayre@anonymised.com>wrote:
Even if you add the extent parameter to the URL
http://localhost:8080/geonetwork/apps/search/?extent=-5.1,41,9.7,51
?
Francois
2012/8/28 John Callahan <john.callahan@anonymised.com>:
> Thank you for your response. However, that does not seem to have any
effect
> on the new web interfaces.
>
> - John
>
>
>
>
>
> On Tue, Aug 28, 2012 at 11:03 AM, Francois Prunayre <
fx.prunayre@anonymised.com>
> wrote:
>>
>> Hi,
>>
>> in config-gui.xml [1] define the extent URL parameter like in the
>> example provided - it will define the extent to start with (when you
>> access to http://localhost:8080/geonetwork) :
>> <client type="redirect" widget="true" url="../../apps/search/"
>> parameters="extent=-5.1,41,9.7,51" createParameter="#create"
>> stateId="s"/>
>> After that, when you search zoom is adapted according to the records
>> in the current page by default.
>>
>> Coordinates must be in the map's projection.
>>
>> HTH.
>>
>> Francois
>>
>> [1]
>>
https://github.com/geonetwork/core-geonetwork/blob/master/web/src/main/webapp/WEB-INF/config-gui.xml
>>
>> 2012/8/28 John Callahan <john.callahan@anonymised.com>:
>> > I've been testing the new web interfaces in the nightly builds of GN
>> > 2.8.x
>> > (those in apps/search and apps/tabsearch.) As I run into issues or
>> > have
>> > specific questions, is this mailing list the place to report those?
>> >
>> > An issue I'm working through now is how to restrict the extent
>> > coordinates
>> > in the mini search map. Custom coordinates in config-gui.xml don't
seem
>> > to
>> > have an effect and modifying value sin App-mini.js causes problems in
>> > the
>> > map rendering. Thanks.
>> >
>> > - John
>> >
>> > ***********************************************
>> > John Callahan, Research Scientist
>> > Delaware Geological Survey, University of Delaware
>> > URL: http://www.dgs.udel.edu
>> > *************************************************
>> >
>> >
------------------------------------------------------------------------------
>> > Live Security Virtual Conference
>> > Exclusive live event will cover all the ways today's security and
>> > threat landscape has changed and how IT managers can respond.
>> > Discussions
>> > will include endpoint security, mobile security and the latest in
>> > malware
>> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> > _______________________________________________
>> > GeoNetwork-users mailing list
>> > GeoNetwork-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/geonetwork-users
>> > GeoNetwork OpenSource is maintained at
>> > http://sourceforge.net/projects/geonetwork
>
>
(attachments)
