Hi Hassane,

to do this, it is required to create separate geoserver extension
module, with following applicationContext.xml content:

<beans>

      <!-- first disable default GS OL output using NameExclusionFilter -->
     <bean id="OpenLayersMapOutputExclusionFilter"
class="org.geoserver.platform.NameExclusionFilter">
        <property name="beanId" value="OpenLayersMapProducer"/>
     </bean>

    <!-- then inject our custom defined class like this -->
    <bean id="CustomOpenLayersMapProducer"
class="org.geoserver.wms.map.CustomOpenLayersMapOutputFormat">
                <constructor-arg index="0" ref="wms" />
    </bean>
</beans>

Of course, inside module you have to include your own custom
CustomOpenLayersMapOutputFormat.java and custom
OpenLayersMapTemplate.ftl files.

Let us know how it went,

Regards,
Ivan

On Thu, Apr 21, 2011 at 11:22 AM, hassane <[email protected]> wrote:
> i'm interest in how to do it :  "There is also possibility to create separate
> custom openlayers preview
>  module, that will override gs default OL format ( so you dont have to
> modify any original gs code). Let me know if you are interested in how
> to do it. "
>
> --
> View this message in context: 
> http://osgeo-org.1803224.n2.nabble.com/how-to-change-the-default-viewer-of-GeoServer-tp6291794p6293678.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Benefiting from Server Virtualization: Beyond Initial Workload
> Consolidation -- Increasing the use of server virtualization is a top
> priority.Virtualization can reduce costs, simplify management, and improve
> application availability and disaster protection. Learn more about boosting
> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>



-- 
-------------------------------------------------------
Ivan Grcic
GeoSolutions S.A.S.
Software Engineer


Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://twitter.com/geosolutions_it
http://www.youtube.com/user/GeoSolutionsIT

-------------------------------------------------------

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to