Releases: sony/mapray-js
0.8.4
0.8.4
Added
- Implement mouse event for each entities #105, #132
- Support overlay entity#145
- compute geographical distance between two GePoints#152, #155
- Supported smoothly changing camera position and roration#153, #155
- Supported to set position and rotation of camera on URL #154, #155
Improved
- Refactor classes which related to resource#146
- Upatate the style for jsdoc#159, #158
- Modified stroke of TextEntity#160, #161
Bug fix
0.8.3
0.8.2
0.8.1
0.8.0
0.7.3
0.7.2
0.7.1
Added
- Support ClampTpTerrian mode for all entities #60
- Support altitude mode and extruded mode for GeoJSON Loader #63, #69
- Add attribution controller #85
- Organize copyright notices #86
- Add UI Engine #78 #82
- Support Text stroke and background color in TextEntity #72
- Update Examples and tutorials #65, #68 #70
- Add CSS files and support to generate css file #84
Bug fix
Breaking change
Renamed height
variable to altitude
in GeoPoint.
#73
0.7.0
Added
- Altitude mode for each entites and schema of scene file #49
- GeoJSON Loader #46
- Support Polygon Entity #35
- Support Pin Entity #34
- Support ImageIcon Entity #56
- Support Mapray API #52
- Support Model entity #50
- Breaking changes
- Change the coordination for mapray scene file and API #50
Removed
- Generic Entity #50
0.6.0
Added
-
Added options and methods to specify object visibility in mapray.Viewer
-
Options
- ground_visibility: Ground visibility
- entity_visibility: Entity visibility
-
Method
- setVisibility
- getVisibility
-
-
Supports loading a glTF model #18
-
Supports new scene graph engine that manages 3D models #17 #18
-
Added method to calculate KML compatible model transformation matrix in mapray.GeoMath #15
- kml_model_matrix()
-
Add entity class mapray.ModelEntity #18
-
Support rotate and scale to the transform property in mapray scene file #16
-
Added some samples for maprayJS #10
-
Support CI with TravisCI #23
Changed
Details about changes to the mapray scene file
Rotate (heading
, tilt
, roll
) and scale(scale
) to the transform property of each entity
You can now optionally specify the properties.
The following is an example specification of the transform
property.
It rotates 45 degrees to the right and makes the scale 10 times larger.
{
"type": "generic",
"transform": {
"cartographic": [139.8, 36.5, 12.3],
"heading": 45,
"scale": [10, 10, 10]
},
...
}
Added entity type corresponding to mapray.ModelEntity.
When using this type, specify model for the type
property.
Refers to a model object registered in model_register
by the ref_model
property.
If there are multiple models in the referenced model object, you can use integers or names in index
It can be selected by specifying.
"model_register": {
"model-x": {
"link": "models/model-x.gltf",
"offset_transform": { "heading": 180, "tilt": -90 }
},
...
},
"entity_list": [
{
"type": "model",
"transform": { "cartographic": [140.0, 35, 0], "heading": 180 },
"ref_model": "model-x"
},
{
"type": "model",
"transform": { "cartographic": [140.1, 35, 0], "scale": 2.5 },
"ref_model": "model-x",
"index": 3
},
{
"type": "model",
"transform": { "cartographic": [140.2, 35, 0] },
"ref_model": "model-x",
"index": "scene-name-x"
},
...
]