Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:… – Devdatta Tengshe Feb 13 '13 at 15:46
up vote 2 down vote accepted

A brief google search has lead me to this page which says: the API V3, with the MapType object, you write your own .getTile() method:


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



(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.