public final class MapViewOptions
extends java.lang.Object
Constructor and Description |
---|
MapViewOptions()
Creates new MapViewOptions object with default settings.
|
MapViewOptions(MapComponentType componentType)
Creates new MapViewOptions object with list of imported libraries.
|
MapViewOptions(MapComponentType componentType,
java.lang.String[] importLibraries)
Creates new MapViewOptions object.
|
MapViewOptions(java.lang.String[] importLibraries)
Creates new MapViewOptions object with list of imported libraries.
|
Modifier and Type | Method and Description |
---|---|
MapComponentType |
getComponentType()
Returns value of componentType property.
|
protected java.lang.String |
getScriptUrl() |
void |
importPlaces()
Imports places library.
|
void |
setApiKey(java.lang.String value)
Some functions requires unique google id.
|
void |
setComponentType(MapComponentType type)
Sets new value for componentType property.
|
void |
setLanguage(java.lang.String value)
Set preferred language for map displaying.
|
void |
setRegion(java.lang.String value)
Sets region that will be used by engine.
|
StreetViewLayout |
streetViewLayout() |
public MapViewOptions()
public MapViewOptions(java.lang.String[] importLibraries)
importLibraries
- - specifies array of libraries names that should be importedpublic MapViewOptions(MapComponentType componentType)
componentType
- - specifies component type (LIGHTWEIGHT or HEAVYWEIGHT) for MapView objectpublic MapViewOptions(MapComponentType componentType, java.lang.String[] importLibraries)
componentType
- - specifies component type (LIGHTWEIGHT or HEAVYWEIGHT) for MapView objectimportLibraries
- - specifies array of libraries names that should be importedpublic MapComponentType getComponentType()
Represents a component type of MapView object.
setComponentType(com.teamdev.jxmaps.MapComponentType)
public void setComponentType(MapComponentType type)
type
- new property valuegetComponentType()
public void setLanguage(java.lang.String value)
value
- language idpublic void importPlaces()
public void setApiKey(java.lang.String value)
value
- key valuepublic void setRegion(java.lang.String value)
value
- key valueprotected java.lang.String getScriptUrl()
public StreetViewLayout streetViewLayout()