com.supermap.services.providers.aggregation
Class RemoteMapProviderFactory
- java.lang.Object
-
- com.supermap.services.providers.aggregation.RemoteMapProviderFactory
-
public final class RemoteMapProviderFactory extends java.lang.ObjectDifferent sources of map service provider factory.
Through this factory, you can build service providers of map services from different sources.
-
-
Constructor Summary
Constructors Constructor and Description RemoteMapProviderFactory()
-
Method Summary
Methods Modifier and Type Method and Description protected intcheckLicense()The license for examine.static RemoteMapProviderFactorygetInstance()Obtain an instance of a remote map service provider factory.MapProvidergetMapProvider(ServiceInfo serviceInfo)Get the map service provider based on endpoint information.
-
-
-
Method Detail
-
getInstance
public static RemoteMapProviderFactory getInstance()
Obtain an instance of a remote map service provider factory.
- Returns:
- The instance of the remote map service provider factory.
-
checkLicense
protected int checkLicense()
The license for examine.
According to the user's product configuration, find the corresponding license information.
Currently requires the use of enterprise license.
- Returns:
- The query returns 0 successively, otherwise returns an integer other than 0.
-
getMapProvider
public MapProvider getMapProvider(ServiceInfo serviceInfo)
Get the map service provider based on endpoint information. For example, if the endpoint type is "UGC", a SuperMap map service provider (
UGCMapProvider) is returned; if the endpoint type is "WMS", the WMS service provider (WMSMapProvider) is returned.When the method is called, the license is checked, please use the correct license configuration
- Parameters:
serviceInfo- Endpoint information.- Returns:
- map service provider.
-
-