All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vaadin.flow.component.map.configuration.source.TileImageSource Maven / Gradle / Ivy

There is a newer version: 24.4.12
Show newest version
/**
 * Copyright 2000-2023 Vaadin Ltd.
 *
 * This program is available under Vaadin Commercial License and Service Terms.
 *
 * See  for the full
 * license.
 */
package com.vaadin.flow.component.map.configuration.source;

/**
 * Abstract base class for map sources providing tiled images from a URL
 */
public abstract class TileImageSource extends UrlTileSource {

    private final String crossOrigin;

    protected TileImageSource(Options options) {
        super(options);
        this.crossOrigin = options.crossOrigin;
    }

    /**
     * The {@code crossOrigin} attribute for loaded images.
     * 

* This value can not be changed after constructing an instance, it can only * be set initially by passing an options object to the constructor. * * @return the crossOrigin attribute used for loaded images */ public String getCrossOrigin() { return crossOrigin; } protected static abstract class Options extends UrlTileSource.Options { private String crossOrigin; /** * @see TileImageSource#getCrossOrigin() */ public void setCrossOrigin(String crossOrigin) { this.crossOrigin = crossOrigin; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy