package org.sigmah.shared.dto.map; /* * #%L * Sigmah * %% * Copyright (C) 2010 - 2016 URD * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program. If not, see * <http://www.gnu.org/licenses/gpl-3.0.html>. * #L% */ import org.sigmah.shared.dto.base.DTO; /** * Abstract BaseMap. * * @author Alex Bertram * @author Denis Colliot (dcolliot@ideia.fr) */ public abstract class BaseMap implements DTO { private String id; private String name; private int minZoom; private int maxZoom; private String copyright; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getMinZoom() { return minZoom; } public void setMinZoom(int minZoom) { this.minZoom = minZoom; } public int getMaxZoom() { return maxZoom; } public void setMaxZoom(int maxZoom) { this.maxZoom = maxZoom; } public String getCopyright() { return copyright; } public void setCopyright(String copyright) { this.copyright = copyright; } public abstract String getTileUrl(int zoom, int x, int y); public abstract String getLocalTilePath(int zoom, int x, int y); }