001package systems.dmx.geomaps;
002
003import systems.dmx.core.model.ChildTopicsModel;
004import systems.dmx.core.service.ModelFactory;
005import systems.dmx.topicmaps.TopicmapRenderer;
006
007
008
009// ### TODO: rename to Geomap
010class GeomapRenderer implements TopicmapRenderer {
011
012    @Override
013    public String getUri() {
014        // ### TODO: change to "dmx.geomaps.geomap"
015        return "dmx.geomaps.geomap_renderer";
016    }
017
018    @Override
019    public ChildTopicsModel initialTopicmapState(ModelFactory mf) {
020        return mf.newChildTopicsModel()
021            .put("dmx.topicmaps.translation", mf.newChildTopicsModel()
022                .put("dmx.topicmaps.translation_x", 11.0)     // default region is "Germany"
023                .put("dmx.topicmaps.translation_y", 51.0)
024            )
025            .put("dmx.topicmaps.zoom_level", 6);
026    }
027}