Does anyone know of a walk-through on a blog or something regarding how to set a custom, default extent when it is first opened? What I want to do is have the Map Viewer zoomed into my region when someone clicks the globe on the search page. Right now it opens to repeating images of the full globe.
I tried changing the mapsConfig values in config.js mentioned at http://www.geonetwork-opensource.org/manuals/trunk/eng/users/customizing-application/search-ui/configdefault.html but that did not change the map extent in the viewer. My googling on the issue has led me to a number of suggestions on StackExchange and GeoNetwork, including modifying config-viewer.xml and config-gui.xml. I tried changing values in both of those files as well, without success.
The process I used when working on those files was to shutdown Tomcat (I use the WAR), modify the file, and then start Tomcat again. When that didn't work, I restarted the server to see if something stronger would kick the changes into effect before moving on to the next suggested file.
My environment is SUSE Linux Enterprise 11 (64-bit), Tomcat 8, and GeoNetwork 3.0.3. I am using the default version of the map viewer.
- Mike S
ABAG has moved.
Effective Monday May 23, 2016 our mailing address and location is:
Association of Bay Area Governments
375 Beale Street, Suite 700
San Francisco, CA 94105
(415) 820-7900
My email address will remain the same.
My phone number will be (415) 820-79XX (last two digits remain the same).
We look forward to seeing you at our new location along with our regional partners, the Metropolitan Transportation Commission and the Bay Area Air Quality Management District.
There is one simple option.
You just need to modify data/resources/map/config-viewer.xml
For example for initial extent over Slovenia you change it to this:
I think that yours and "min" version must work, but in both cases you need
to delete files listed below:
These files:
-wro4j-cache.h2.db
-wro4j-cache.lock.db
-wro4j-cache.trace.db
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Custom-map-viewer-extent-tp5269654p5269683.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.
Thank you Amadej. I did not know I needed to delete the cache files!
Unfortunately deleting wro4j-cache.h2.db resulted in not being able to see any metadata or the map viewer. I could get to the admin screen and rebuilt the indexes. GeoNetwork can see I have the right number of records, it just won't display them. Nice advantage of virtual servers is I can just delete that snapshot and start over.
It might have something to do with my use of PostgreSQL as the DB, not H2. I need to stop forgetting that when I post my GN environment.
- Mike S
On 6/3/2016 at 1:11 AM, amacar <amadej.pevec@anonymised.com> wrote:
There is one simple option.
You just need to modify data/resources/map/config-viewer.xml
For example for initial extent over Slovenia you change it to this:
I think that yours and "min" version must work, but in both cases you need
to delete files listed below:
These files:
-wro4j-cache.h2.db
-wro4j-cache.lock.db
-wro4j-cache.trace.db
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Custom-map-viewer-extent-tp5269654p52696
83.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
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
ABAG has moved.
Effective Monday May 23, 2016 our mailing address and location is:
Association of Bay Area Governments
375 Beale Street, Suite 700
San Francisco, CA 94105
(415) 820-7900
My email address will remain the same.
My phone number will be (415) 820-79XX (last two digits remain the same).
We look forward to seeing you at our new location along with our regional partners, the Metropolitan Transportation Commission and the Bay Area Air Quality Management District.
Apologies, that server is using the H2 database.
Maybe I did not wait long enough for GeoNetwork to rebuild the cache for the metadata and map views. I will give it an hour or so to pick through the data folder and rebuild everything.
- Mike S
On 6/3/2016 at 11:00 AM, "Michael Smith" <MichaelS@anonymised.com> wrote:
Thank you Amadej. I did not know I needed to delete the cache files!
Unfortunately deleting wro4j-cache.h2.db resulted in not being able to see
any metadata or the map viewer. I could get to the admin screen and rebuilt
the indexes. GeoNetwork can see I have the right number of records, it just
won't display them. Nice advantage of virtual servers is I can just delete
that snapshot and start over.
It might have something to do with my use of PostgreSQL as the DB, not H2. I
need to stop forgetting that when I post my GN environment.
- Mike S
On 6/3/2016 at 1:11 AM, amacar <amadej.pevec@anonymised.com> wrote:
There is one simple option.
You just need to modify data/resources/map/config-viewer.xml
For example for initial extent over Slovenia you change it to this:
I think that yours and "min" version must work, but in both cases you need
to delete files listed below:
These files:
-wro4j-cache.h2.db
-wro4j-cache.lock.db
-wro4j-cache.trace.db
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Custom-map-viewer-extent-tp5269654p52696
83.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
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
ABAG has moved.
Effective Monday May 23, 2016 our mailing address and location is:
Association of Bay Area Governments
375 Beale Street, Suite 700
San Francisco, CA 94105
(415) 820-7900
My email address will remain the same.
My phone number will be (415) 820-79XX (last two digits remain the same).
We look forward to seeing you at our new location along with our regional
partners, the Metropolitan Transportation Commission and the Bay Area Air
Quality Management District.
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
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
ABAG has moved.
Effective Monday May 23, 2016 our mailing address and location is:
Association of Bay Area Governments
375 Beale Street, Suite 700
San Francisco, CA 94105
(415) 820-7900
My email address will remain the same.
My phone number will be (415) 820-79XX (last two digits remain the same).
We look forward to seeing you at our new location along with our regional partners, the Metropolitan Transportation Commission and the Bay Area Air Quality Management District.
Solved the issue regarding the loss of the search and map pages after deleting the wro4j-cache files. You need to keep the WAR in the Tomcat webapps directory in order for GeoNetwork to rebuild those pages (I usually delete the WARs to keep things tidy).
That said, the map viewer still does not open to the region. My current guess is that it is related to the bounding box coordinates. The following is the content of my config-viewer.xml (the coordinates are from QGIS using EPSG 3857):
<ows-context:OWSContext xmlns:ows-context="http://www.opengis.net/ows-context"
xmlns:ows="http://www.opengis.net/ows"
version="0.3.1" id="ows-context-ex-1-v3">
<ows-context:General>
<ows:BoundingBox crs="EPSG:3857">
<!-- lower left corner -->
<ows:LowerCorner>-14016066 4114288</ows:LowerCorner>
<!-- upper right corner -->
<ows:UpperCorner>-12965934 5045356</ows:UpperCorner>
</ows:BoundingBox>
</ows-context:General>
<ows-context:ResourceList>
<ows-context:Layer name="{type=mapquest}"
group="Background layers"
hidden="true"
opacity="1">
<ows:Title>MapQuest</ows:Title>
</ows-context:Layer>
<ows-context:Layer name="{type=osm}"
group="Background layers"
hidden="false"
opacity="1">
<ows:Title>OpenStreetMap</ows:Title>
</ows-context:Layer>
<ows-context:Layer name="{type=bing_aerial}"
group="Background layers"
hidden="true"
opacity="1">
<ows:Title>Bing Aerial</ows:Title>
</ows-context:Layer>
</ows-context:ResourceList>
</ows-context:OWSContext>
On 6/3/2016 at 12:10 PM, "Michael Smith" <MichaelS@anonymised.com> wrote:
Apologies, that server is using the H2 database.
Maybe I did not wait long enough for GeoNetwork to rebuild the cache for the
metadata and map views. I will give it an hour or so to pick through the data
folder and rebuild everything.
- Mike S
On 6/3/2016 at 11:00 AM, "Michael Smith" <MichaelS@anonymised.com> wrote:
Thank you Amadej. I did not know I needed to delete the cache files!
Unfortunately deleting wro4j-cache.h2.db resulted in not being able to see
any metadata or the map viewer. I could get to the admin screen and rebuilt
the indexes. GeoNetwork can see I have the right number of records, it just
won't display them. Nice advantage of virtual servers is I can just delete
that snapshot and start over.
It might have something to do with my use of PostgreSQL as the DB, not H2. I
need to stop forgetting that when I post my GN environment.
- Mike S
On 6/3/2016 at 1:11 AM, amacar <amadej.pevec@anonymised.com> wrote:
There is one simple option.
You just need to modify data/resources/map/config-viewer.xml
For example for initial extent over Slovenia you change it to this:
I think that yours and "min" version must work, but in both cases you need
to delete files listed below:
These files:
-wro4j-cache.h2.db
-wro4j-cache.lock.db
-wro4j-cache.trace.db
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Custom-map-viewer-extent-tp5269654p52696
83.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
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
ABAG has moved.
Effective Monday May 23, 2016 our mailing address and location is:
Association of Bay Area Governments
375 Beale Street, Suite 700
San Francisco, CA 94105
(415) 820-7900
My email address will remain the same.
My phone number will be (415) 820-79XX (last two digits remain the same).
We look forward to seeing you at our new location along with our regional
partners, the Metropolitan Transportation Commission and the Bay Area Air
Quality Management District.
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
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
ABAG has moved.
Effective Monday May 23, 2016 our mailing address and location is:
Association of Bay Area Governments
375 Beale Street, Suite 700
San Francisco, CA 94105
(415) 820-7900
My email address will remain the same.
My phone number will be (415) 820-79XX (last two digits remain the same).
We look forward to seeing you at our new location along with our regional
partners, the Metropolitan Transportation Commission and the Bay Area Air
Quality Management District.
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
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
ABAG has moved.
Effective Monday May 23, 2016 our mailing address and location is:
Association of Bay Area Governments
375 Beale Street, Suite 700
San Francisco, CA 94105
(415) 820-7900
My email address will remain the same.
My phone number will be (415) 820-79XX (last two digits remain the same).
We look forward to seeing you at our new location along with our regional partners, the Metropolitan Transportation Commission and the Bay Area Air Quality Management District.
Try deleting "owsContext" in localStorage, and loading default map.
<http://osgeo-org.1560.x6.nabble.com/file/n5270144/43ieU5S.png>
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Custom-map-viewer-extent-tp5269654p5270144.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.
Amadej,
I was unable to get config-viewer.xml to do anything, but was still able to get the default view of the map to be my region. I modified the config.js for the map viewer with the center point and appropriate zoom level.
I do not get the other base map options by relying on the config.js work-around, but I view that as an acceptable trade-off.
- Mike S
On 6/6/2016 at 7:17 AM, amacar <amadej.pevec@anonymised.com> wrote:
Try deleting "owsContext" in localStorage, and loading default map.
<http://osgeo-org.1560.x6.nabble.com/file/n5270144/43ieU5S.png>
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Custom-map-viewer-extent-tp5269654p52701
44.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
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
ABAG has moved.
Effective Monday May 23, 2016 our mailing address and location is:
Association of Bay Area Governments
375 Beale Street, Suite 700
San Francisco, CA 94105
(415) 820-7900
My email address will remain the same.
My phone number will be (415) 820-79XX (last two digits remain the same).
We look forward to seeing you at our new location along with our regional partners, the Metropolitan Transportation Commission and the Bay Area Air Quality Management District.