Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I need to port code of one application written in Google Mapa API v.2 to API v.3. There is several layers taken via TMS, that are displayed using GTileLayer class. It is as simple as:

var tilelayer_tematyczne = new GTileLayer(null, null, null, {
    tileUrlTemplate: 'http://domain/geoserver/gwc/service/gmaps?layers=layer&zoom={Z}&x={X}&y={Y}&format=image/png',

tilesTematyczne = new GTileLayerOverlay(tilelayer_tematyczne);

I do not see any similar class in API v3. How do you cope with that problem? How to display TMS on top of Google Maps?

share|improve this question
Is this question of any use: stackoverflow.com/questions/2915944/… –  Devdatta Tengshe Feb 13 '13 at 15:46

2 Answers 2

up vote 2 down vote accepted

A brief google search has lead me to this page which says:

...in the API V3, with the MapType object, you write your own .getTile() method: http://code.google.com/apis/maps/documentation/v3/reference.html#MapType

Sample: http://maps.forum.nu/v3/gm_customTiles.html

Further Research has lead me to this feature request on Google Code. According to the attached Change Log,there is a New ImageMapType object to support custom map tiles


share|improve this answer

Another Example: Mapserver is used as the service creating the tiles/vectors

Using http://gmaps-utility-gis.googlecode.com/svn/trunk/arcgislink/examples/simpleags.html

Code: http://gmaps-utility-gis.googlecode.com/svn/trunk/arcgislink/examples/simpleags.js

(I think this was created as a workaround for the same issue)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.