Opened 14 years ago

Last modified 12 years ago

#332 new enhancement

permit to use TMS layers as baselayers

Reported by: landry Owned by: gagan2u2002
Priority: minor Milestone: v2.8.0
Component: Web Map Viewer Version: v2.6.0
Keywords: tms scales units Cc:

Description

So far we can only use WMS layers as baselayers in mapViewer.. this is great but slow with complex map/photo layers. For performance reasons it'd be great if we could use TMS layers too with fixed scales, and then also decide the scale/unit of the whole ol map.

Maybe smth like

<mapViewer>
<scales>x,y,z</scales>
<units>m</units>
<layers>
<layer type=TMS server=tmsurl options="{ layername: 'ortho', type: 'jpeg'}"/>
<layer type=WMS server=wmsurl params="{ layername: 'commune', format: 'image/png'}" options="{isBaseLayer:false}"/>
<layers>
</mapViewer>

If there's any interest into that enhancement, maybe i can try to implement it...

Attachments (1)

gn-add-tms-scales-units.diff (5.5 KB ) - added by landry 14 years ago.

Download all attachments as: .zip

Change History (4)

by landry, 14 years ago

comment:1 by landry, 14 years ago

Keywords: tms scales units added

Find attached a conceptual diff (untested, but you get the idea) to implement units/scales and tmslayer config keys. It includes examples/documentation. To be discussed:

  • merge it with <layer> key so that you only pass one array to init(), and add a 'type' attribute as proposed previously, defaulting to WMS to avoid breaking existing setups ? That way, you only need to make the difference between TMS/WMS when creating ol layers
  • set default array of scales in case it's not used ?
  • use it too in ol_minimap.js ? in extentMap.js ? One could debate the usefulness of multiple layers in both of them, whereas multiple base layers make sense in the main map viewer.

comment:2 by gagan2u2002, 13 years ago

Owner: changed from geonetwork-devel@… to gagan2u2002

comment:3 by ianwallen, 12 years ago

Milestone: v2.7.0v2.8.0
Note: See TracTickets for help on using tickets.