Skip to content

Tern & Google Maps support

angelozerr edited this page May 27, 2015 · 13 revisions

tern.googleapi provides the gmaps tern plugin which gives you a support for Google Maps JavaScript API.

After installing and converting your project as Tern Project (see Tern-Eclipse-IDE), open Project Properties, click on Tern / Modules item and select the Google Maps tern plugin and the version :

Select ExtJS Plugin

After that you can benefit with Google Maps completion :

ExtJs Completion

Completion works for Google Maps method :

Google Maps Completion On Map

This Google Maps tern plugin can be used inside WebBrowser. You can see demo here.

Object literal

Completion for object literal :

GMaps Object literal completion

Validation for object literal (which is available if you enable the (Semantic) Lint linter) :

GMaps Object literal validation

Web Browser

You can play with online demo which uses CodeMirror (inside Web Browser).

Clone this wiki locally