OutSystems Forge 日本語データベース

MapIt-DeCarta Maps

※Forge全件データの日本語検索サービスをご利用になりたい場合は、こちらまでお問合せください。

Forge英文サイト

2014-01-28 1.0.1a Ferdinand Malan 8.0+ SQL Server .NET
JavaScript V3 APIは、最先端のLBSアプリケーションを構築するための、軽量でフル機能を備えた高度に構成可能な高性能のクロスデバイスHTML5準拠のフレームワークです。
こんにちは、みんな、 我々の会社ではGoogleマップの代わりにMapIt-DeCarta Mapsを使用しています。だから私はあなた自身のマップを作ることができるように、この簡単なライブラリをあなたと共有したいと思います。 それにはいくつかのステップがあります。 1)マップを使用してAPIをダウンロードできるようにするには、mapItアカウントを作成する必要があります。 ・http://developer.mapit.co.za/ ・無料ですので、落胆しないでください。 2)登録後、あなたのアカウントに行き、 "Map Test"をクリックします。 3)次のセクションで、このユーザー名とパスワードが必要になります。 これにより、サーバーはユーザー名とパスワードを認証し、マップタイルをロードできます。 さて、このすべての仕組みを説明しましょう。 1)Javascript / Images / css(基本的にAPI全体)が別々のWebフローとしてeSpaceに追加されました。 ・これは、比較的大きなAPIであり、すべてを1つのフローの下に追加すると非常に混乱するためです。 2)各Web Flowの中には、Webブロックのグループがあります。これらのWebブロックには対応する.jsとcssが含まれています ・これをリソースとして追加することもできます。スクリプトとスタイルは時々変わるので、私たちはこれをやっていません。後で変更するのが簡単になります。 3)各ウェブブロックの中には、いくつかのJavascriptまたはCssがあります。 4)次のステップは、これらのすべてのWebブロックを使用可能なライブラリWebブロックに追加することです。 ・これは必要なJavascriptとCSSを参照するために使用されます 5)最後に、ライブラリ、式、およびマップが初期化されるdivを保持する別個のWebブロックを作成します。 ・Map Container:mapContainerの幅と高さを指定するスタイルを保持します。 ・表現:これは非常に重要です。マップを初期化し、使用したいと思われるすべての余分な機能を担当します。この場合、 "Point"、 "Zoom level"、 "mapContainer"をスクリプトに渡したいとします。。 ・式の「エスケープコンテンツ」プロパティを「いいえ」に設定する必要があることに注意してください。これにより、HTMLをページに挿入できます。 6)これで、どのWebページでもこのWebブロックを使用できます。 7)ドキュメントとしてDeCarta APIが添付されています。 このeSpaceには多くの例やその他の機能はありませんが、ExpressionとEscapeのコンテンツをNoメソッドに設定すると簡単に実装できます。 注意:http://developer.decarta.com/にアクセスしてそこからAPIをダウンロードすると、同じ結果が得られます。 これは、これが新しいバージョンであるにもかかわらず、上記のWebブロックメソッドを使用してAPIを再作成する必要があることを意味しますが、原則はそのままです。

[Overview]
The JavaScript V3 API is a lightweight, full-featured, highly configurable, high performance,cross-device HTML5-compliant framework for buildingstate-of-the-art LBS applications.
[Detail]
Hi guys, Our company uses MapIt-DeCarta Maps instead of google maps. So I would like to share with you this simple Library so that you can create your own maps. There are a couple of steps involved so please bear with me. 1) You need to create a mapIt account to be able to use the maps and download the API. · http://developer.mapit.co.za/ · It’s free, so don’t be discouraged. 2) After registering go to your account and click on “Map Test” 3) You will need this username and password in the following section: · This will allow the server to authenticate your username and password and load the map tiles. Now, let me explain how all this works. 1) The Javascript/Images/css (basically the whole API) has been added to the eSpace as separate Web Flows. · The reason for this is because it is a relatively big API and if you add it all under one flow it will become very confusing. 2) Inside each Web Flow is a group of web blocks. These web blocks contain the corresponding .js and css · Alternatively you can add these as resources. We are not doing this because the scripts and styles will change from time to time. It just makes it easier to change later on. 3) Inside each Web Block we will either have some Javascript or Css. 4) The next step will be to add all these web blocks into a usable library web block: · This will be used to reference the required Javascript and css 5) Finally we will create a separate web block that will hold the library, expression as well as a div in which the map will be initialized. · Map Container: Holds the style that will be responsible for the width and height of the mapContainer · Expression: This is very important. It will be responsible for initializing the map and all the extra functions you might want to use. In this case we want to pass a “Point”, “Zoom level” as well as the “mapContainer” to the script. · Please note that you have to set the “Escape Content” property of the expression to No. By doing this you will able to inject HTML into the page. 6) Now you can simply use this web block in any page. 7) Attached is the DeCarta API as documentation. There are a lot of examples and other functionality not present in this eSpace but can be easily implemented with the Expression and Escape content set to No method. NB: You can achieve the same result by going to http://developer.decarta.com/ and downloading the API from there. This also means that you will have to re-create the API with the web block method as described above as this is a newer version but the principle stays the same. Have Fun.
戻る