Skip to content

Commit

Permalink
[Added] android layer example
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmobility1 committed Dec 26, 2023
1 parent 615b09c commit 35f295d
Show file tree
Hide file tree
Showing 17 changed files with 96 additions and 3 deletions.
14 changes: 12 additions & 2 deletions android/example/exampleInfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"examples":[
{"name": "Marker", "path": "/android/example/overlays/marker"},
{"name": "InfoWindow", "path": "/android/example/overlays/infoWindow"},
{"name": "Custom InfoWindow", "path": "/android/overlays/customInfoWindow"},
{"name": "Custom InfoWindow", "path": "/android/example/overlays/customInfoWindow"},
{"name": "Polygon", "path": "/android/example/overlays/polygon"},
{"name": "Polyline", "path": "/android/example/overlays/polyline"},
{"name": "Path", "path": "/android/example/overlays/path"}
Expand All @@ -50,7 +50,17 @@
"examples":[
{"name": "Map Tap, LongPress Event", "path": "/android/example/events/mapTap"},
{"name": "Map Double/TwoFingerTap, Scale Event", "path": "/android/example/events/mapZoom"},
{"name": "Overlay Event", "path": "/android/events/overlayEvent"}
{"name": "Overlay Event", "path": "/android/example/events/overlayEvent"}
]
},
{
"name":"Layer, Source",
"examples":[
{"name": "BackgroundLayer", "path": "/android/example/layerSource/backgroundLayer"},
{"name": "FillLayer", "path": "/android/example/layerSource/fillLayer"},
{"name": "LineLayer", "path": "/android/example/layerSource/lineLayer"},
{"name": "RasterLayer", "path": "/android/example/layerSource/rasterLayer"},
{"name": "SymbolLayer", "path": "/android/example/layerSource/symbolLayer"}
]
}
]
Expand Down
15 changes: 15 additions & 0 deletions android/example/layerSource/backgroundLayer/input.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"files": [
"https://raw.githubusercontent.com/ktmobility1/android-map-sdk/master/app/src/main/res/layout/activity_background_layer.xml",
"https://raw.githubusercontent.com/ktmobility1/android-map-sdk/master/app/src/main/java/com/kt/maps/sample/example/layer/BackgroundLayerActivity.kt"
],
"category": "Layer, Source",
"name": "BackgroundLayer",
"desc": "배경 스타일 BackgroundLayer에 적용한 예제입니다.",
"reference":{
"KtMap" : "https://map.gis.kt.com/mapsdk/android/apidoc/maps/com.kt.maps/-kt-map/index.html",
"background": "https://map.gis.kt.com/mapsdk/android/apidoc/maps/com.kt.maps.style/-layer-factory/-companion/background.html",
"BackgroundLayer": "https://map.gis.kt.com/mapsdk/android/apidoc/htmlCollector/maps/com.kt.maps.style.layers/-background-layer/index.html",
"BackgroundStylePaints": "https://map.gis.kt.com/mapsdk/android/apidoc/maps/com.kt.maps.style.styles/-background-style-paints/index.html"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions android/example/layerSource/fillLayer/input.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"files": [
"https://raw.githubusercontent.com/ktmobility1/android-map-sdk/master/app/src/main/res/layout/activity_fill_layer.xml",
"https://raw.githubusercontent.com/ktmobility1/android-map-sdk/master/app/src/main/java/com/kt/maps/sample/example/layer/FillLayerActivity.kt"
],
"category": "Layer, Source",
"name": "FillLayer",
"desc": "Polygon Geometry를 FillLayer에 적용한 예제입니다.",
"reference":{
"KtMap" : "https://map.gis.kt.com/mapsdk/android/apidoc/maps/com.kt.maps/-kt-map/index.html",
"fill": "https://map.gis.kt.com/mapsdk/android/apidoc/maps/com.kt.maps.style/-layer-factory/-companion/fill.html",
"FillLayer": "https://map.gis.kt.com/mapsdk/android/apidoc/htmlCollector/maps/com.kt.maps.style.layers/-fill-layer/index.html",
"FillStylePaints": "https://map.gis.kt.com/mapsdk/android/apidoc/htmlCollector/maps/com.kt.maps.style.styles/-fill-style-paints/index.html",
"FillStyleLayouts": "https://map.gis.kt.com/mapsdk/android/apidoc/htmlCollector/maps/com.kt.maps.style.styles/-fill-style-layouts/index.html"
}
}
Binary file added android/example/layerSource/fillLayer/sample.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions android/example/layerSource/lineLayer/input.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"files": [
"https://raw.githubusercontent.com/ktmobility1/android-map-sdk/master/app/src/main/res/layout/activity_line_layer_vector.xml",
"https://raw.githubusercontent.com/ktmobility1/android-map-sdk/master/app/src/main/java/com/kt/maps/sample/example/layer/LineLayerVectorSourceActivity.kt"
],
"category": "Layer, Source",
"name": "LineLayer",
"desc": "벡터 타일 데이터의 특정 SourceLayer에 선에 대한 스타일을 적용한 예제입니다.",
"reference":{
"KtMap" : "https://map.gis.kt.com/mapsdk/android/apidoc/maps/com.kt.maps/-kt-map/index.html",
"line": "https://map.gis.kt.com/mapsdk/android/apidoc/htmlCollector/maps/com.kt.maps.style/-layer-factory/-companion/line.html",
"LineLayer": "https://map.gis.kt.com/mapsdk/android/apidoc/htmlCollector/maps/com.kt.maps.style.layers/-line-layer/index.html",
"LineStylePaints": "https://map.gis.kt.com/mapsdk/android/apidoc/htmlCollector/maps/com.kt.maps.style.styles/-line-style-paints/index.html",
"LineStyleLayouts": "https://map.gis.kt.com/mapsdk/android/apidoc/htmlCollector/maps/com.kt.maps.style.styles/-line-style-layouts/index.html",
"VectorSource": "https://map.gis.kt.com/mapsdk/android/apidoc/htmlCollector/maps/com.kt.maps.style.sources/-vector-source/index.html"
}
}
Binary file added android/example/layerSource/lineLayer/sample.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions android/example/layerSource/rasterLayer/input.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"files": [
"https://raw.githubusercontent.com/ktmobility1/android-map-sdk/master/app/src/main/res/layout/activity_raster_layer.xml",
"https://raw.githubusercontent.com/ktmobility1/android-map-sdk/master/app/src/main/java/com/kt/maps/sample/example/layer/RasterLayerActivity.kt"
],
"category": "Layer, Source",
"name": "RasterLayer",
"desc": "Raster 데이터(이미지 타일) RasterLayer에 적용한 예제입니다.",
"reference":{
"KtMap" : "https://map.gis.kt.com/mapsdk/android/apidoc/maps/com.kt.maps/-kt-map/index.html",
"raster": "https://map.gis.kt.com/mapsdk/android/apidoc/htmlCollector/maps/com.kt.maps.style/-layer-factory/-companion/raster.html",
"RasterLayer": "https://map.gis.kt.com/mapsdk/android/apidoc/htmlCollector/maps/com.kt.maps.style.layers/-raster-layer/index.html",
"RasterStylePaints": "https://map.gis.kt.com/mapsdk/android/apidoc/htmlCollector/maps/com.kt.maps.style.styles/-raster-style-paints/index.html",
"RasterSource": "https://map.gis.kt.com/mapsdk/android/apidoc/htmlCollector/maps/com.kt.maps.style.sources/-raster-source/index.html"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions android/example/layerSource/symbolLayer/input.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"files": [
"https://raw.githubusercontent.com/ktmobility1/android-map-sdk/master/app/src/main/res/layout/activity_symbol_layer.xml",
"https://raw.githubusercontent.com/ktmobility1/android-map-sdk/master/app/src/main/java/com/kt/maps/sample/example/layer/SymbolLayerActivity.kt"
],
"category": "Layer, Source",
"name": "LineLayer",
"desc": "MultiPoint Geometry를 심볼 아이콘, 텍스트를 표출하기 위해 SymbolLayer에 적용한 예제입니다.",
"reference":{
"KtMap" : "https://map.gis.kt.com/mapsdk/android/apidoc/maps/com.kt.maps/-kt-map/index.html",
"symbol": "https://map.gis.kt.com/mapsdk/android/apidoc/maps/com.kt.maps.style/-layer-factory/-companion/symbol.html",
"SymbolLayer": "https://map.gis.kt.com/mapsdk/android/apidoc/maps/com.kt.maps.style.layers/-symbol-layer/index.html",
"SymbolIconStylePaints": "https://map.gis.kt.com/mapsdk/android/apidoc/htmlCollector/maps/com.kt.maps.style.styles/-symbol-icon-style-paints/index.html",
"SymbolIconStyleLayouts": "https://map.gis.kt.com/mapsdk/android/apidoc/htmlCollector/maps/com.kt.maps.style.styles/-symbol-icon-style-layouts/index.html",
"SymbolTextStylePaints": "https://map.gis.kt.com/mapsdk/android/apidoc/htmlCollector/maps/com.kt.maps.style.styles/-symbol-text-style-paints/index.html",
"SymbolTextStyleLayouts": "https://map.gis.kt.com/mapsdk/android/apidoc/htmlCollector/maps/com.kt.maps.style.styles/-symbol-text-style-layouts/index.html",
"GeojsonSource": "https://map.gis.kt.com/mapsdk/android/apidoc/maps/com.kt.maps.style.sources/-geojson-source/index.html"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion android/example/overlays/customInfoWindow/input.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
"KtMap" : "https://map.gis.kt.com/mapsdk/android/apidoc/maps/com.kt.maps/-kt-map/index.html",
"MarkerOptions": "https://map.gis.kt.com/mapsdk/android/apidoc/maps/com.kt.maps.overlay.marker/-marker-options/index.html"
}
}
}

0 comments on commit 35f295d

Please sign in to comment.