#102 openseamap map layer

closed
nobody
None
5
2012-08-27
2012-08-09
No

Hi, it would be nice to have the possibilty to show the openseamap map as a layer.

http://www.openseamap.org/

thanks

Discussion

  • Rob Norris
    Rob Norris
    2012-08-09

    'Won't Fix'

    OpenSeaMap uses OSM Mapnik as a base layer and then adds various controllable POI type layers on top, see http://wiki.openstreetmap.org/wiki/OpenSeaMap

    Viking *only* displays static image tiles plus your own GPS derived data.

    Any mechanism to display extra remote POIs is not going to be added soon by any of the active code contributors.
    Unfortunately since Viking has it's own viewing mechanism - it's not readily compatible with web technologies such as OpenLayers in JavaScript which powers OpenSeaMap

    Note Viking can use any remote tile server see:
    https://sourceforge.net/apps/mediawiki/viking/index.php?title=Maps

     
  • Rob Norris
    Rob Norris
    2012-08-09

    • status: open --> pending
     
  • I found that OpenSeaMap provides a bitmap overlay.
    Example: http://tiles.openseamap.org/seamark/15/17484/10492.png

    You can add such feature by adding the following lines to ~/.viking/maps.xml

    <object class="VikSlippyMapSource">
    <property name="label">OpenSeaMap</property>
    <property name="hostname">tiles.openseamap.org</property>
    <property name="url">/seamark/%d/%d/%d.png</property>
    <property name="id">600</property>
    </object>

    Then, you can add an "OpenSeaMap" layer. Here is a .vik exemple mixing OpenSeaMap and OpenStreetMap (Note that OpenSeaMap only provide high detailed zoom levels):

    #VIKING GPS Data file http://viking.sf.net/

    xmpp=256,000000
    ympp=256,000000
    lat=53,569245
    lon=6,753368
    mode=mercator
    color=#cccccc
    highlightcolor=#eea500
    drawscale=t
    drawcentermark=t
    drawhighlight=t

    ~Layer Map
    name=Street
    mode=13
    directory=/home/guilhem/.viking-maps/
    alpha=255
    autodownload=t
    mapzoom=0
    ~EndLayer

    ~Layer Map
    name=Sea
    mode=88
    directory=/home/guilhem/.viking-maps/
    alpha=255
    autodownload=t
    mapzoom=0
    ~EndLayer

     
  • OpenSeaMap added as source in file maps.xml shipped with viking.

    Git: c3cf4e3e0f27e9c6b05cab2fd5700831878f601f

     
    • status: pending --> closed
     
  • Rob Norris
    Rob Norris
    2012-08-27

    Bonus that you found some pre rendered Open Sea Map tiles!

    However you should be aware that the internal maps id is currently defined as a guint8 type
    [see vikmapslayer_compat.h]

    Thus ATM we're limit ourselves to 'only' 256 map ids, so id 600 actually wraps around - probably to id 88.