Skip to content

Commit

Permalink
3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarlorentzon committed Dec 10, 2020
1 parent 56f3d03 commit 490eea6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,25 @@ MapillaryJS is a JavaScript & WebGL library that renders street level imagery fr

To use MapillaryJS you must [create an account](https://www.mapillary.com/signup) and [obtain a Client ID by registering an application](https://www.mapillary.com/app/settings/developers).

You can use MapillaryJS as a `<script>` tag from a [CDN](https://unpkg.com/browse/mapillary-js@2.21.0/dist/), or as a `mapillary-js` package on [npm](https://www.npmjs.com/package/mapillary-js).
You can use MapillaryJS as a `<script>` tag from a [CDN](https://unpkg.com/browse/mapillary-js@3.0.0/dist/), or as a `mapillary-js` package on [npm](https://www.npmjs.com/package/mapillary-js).

```html
<!DOCTYPE html>
<html>
<head>
<script src='https://unpkg.com/mapillary-js@2.21.0/dist/mapillary.min.js'></script>
<link href='https://unpkg.com/mapillary-js@2.21.0/dist/mapillary.min.css' rel='stylesheet' />
<script src='https://unpkg.com/mapillary-js@3.0.0/dist/mapillary.min.js'></script>
<link href='https://unpkg.com/mapillary-js@3.0.0/dist/mapillary.min.css' rel='stylesheet' />
</head>

<body>
<div id='mly' style='width: 640px; height: 480px;'></div>

<script>
var mly = new Mapillary.Viewer(
'mly',
'<your client id>',
'<your image key for initializing the viewer>'
);
var mly = new Mapillary.Viewer({
apiClient: '<your client id>',
container: 'mly',
imageKey: '<your image key for initializing the viewer>',
});
</script>
</body>
</html>
Expand Down
16 changes: 8 additions & 8 deletions docs/landing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@ MapillaryJS is a JavaScript & WebGL library that renders street level imagery fr

To use MapillaryJS you must [create an account](https://www.mapillary.com/signup) and [obtain a Client ID by registering an application](https://www.mapillary.com/app/settings/developers).

You can use MapillaryJS as a `<script>` tag from a [CDN](https://unpkg.com/browse/mapillary-js@2.21.0/dist/), or as a `mapillary-js` package on [npm](https://www.npmjs.com/package/mapillary-js).
You can use MapillaryJS as a `<script>` tag from a [CDN](https://unpkg.com/browse/mapillary-js@3.0.0/dist/), or as a `mapillary-js` package on [npm](https://www.npmjs.com/package/mapillary-js).

```html
<!DOCTYPE html>
<html>
<head>
<script src='https://unpkg.com/mapillary-js@2.21.0/dist/mapillary.min.js'></script>
<link href='https://unpkg.com/mapillary-js@2.21.0/dist/mapillary.min.css' rel='stylesheet' />
<script src='https://unpkg.com/mapillary-js@3.0.0/dist/mapillary.min.js'></script>
<link href='https://unpkg.com/mapillary-js@3.0.0/dist/mapillary.min.css' rel='stylesheet' />
</head>

<body>
<div id='mly' style='width: 640px; height: 480px;'></div>

<script>
var mly = new Mapillary.Viewer(
'mly',
'<your client id>',
'<your image key for initializing the viewer>'
);
var mly = new Mapillary.Viewer({
apiClient: '<your client id>',
container: 'mly',
imageKey: '<your image key for initializing the viewer>',
});
</script>
</body>
</html>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mapillary-js",
"version": "2.21.0",
"version": "3.0.0",
"description": "WebGL JavaScript library for displaying street level imagery from mapillary.com",
"main": "dist/mapillary.min",
"license": "MIT",
Expand Down

0 comments on commit 490eea6

Please sign in to comment.