io.github.mvpotter.urlbuilder.MarkersUrlArgumentBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yandex-maps-static-api Show documentation
Show all versions of yandex-maps-static-api Show documentation
Library for working with Yandex Maps Static API 1.x
The newest version!
/*
* Created with IntelliJ IDEA.
* User: michaelpotter
* Date: 05/02/14
* Time: 22:14
*/
package io.github.mvpotter.urlbuilder;
import io.github.mvpotter.model.YandexMap;
import io.github.mvpotter.model.marker.Marker;
import io.github.mvpotter.model.marker.Size;
import io.github.mvpotter.model.marker.Style;
import io.github.mvpotter.model.marker.Type;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* Generates URL argument that contains information about markers.
*/
public class MarkersUrlArgumentBuilder extends AbstractUrlArgumentBuilder {
private static final String MARKER_KEY = "pt";
private static final int MAX_ROUND_MARKER_CONTENT_VALUE = 99;
private static final int MAX_SQUARE_MARKER_CONTENT_VALUE = 100;
private static final Map