hi,everybody!
i have a problerm about use "Projection object specification" in v3.
in v2,i wrote it the codes as follow.
//-------------------------------------------------------------------------------------------------------------------------------------------------------------
var map = new GMap2(document.getElementById("mapDiv"));
                        map.setCenter(centerPoint, 15);

////the Specified projection
start--------------------------------------------------------------------------------------------
                                function dituProjection(0.002,0.003){
                                    this.xOffset = 0.002;
                                    this.yOffset = 0.003;
                                }
                                dituProjection.prototype = new GProjection();
                                dituProjection.prototype.fromLatLngToPixel = 
function(latlng,
zoom){
                                    return 
(G_NORMAL_MAP.getProjection()).fromLatLngToPixel(new
GLatLng(latlng.lat()+0.002,latlng.lng()+0.003),zoom);
                                };
                                dituProjection.prototype.fromPixelToLatLng =
function(pixel,zoom,unbounded)
                                {
                                    var latlng =
(G_NORMAL_MAP.getProjection()).fromPixelToLatLng(pixel,zoom,unbounded);
                                    return new 
GLatLng(latlng.lat()-0.002,latlng.lng()-0.003);
                                }
                                dituProjection.prototype.tileCheckRange = 
function(tile, zoom,
tilesize)
                                {
                                    return
(G_NORMAL_MAP.getProjection()).tileCheckRange(tile,zoom,tilesize);
                                }
                                dituProjection.prototype.getWrapWidth = 
function(zoom)
                                {
                                    return 
(G_NORMAL_MAP.getProjection()).getWrapWidth(zoom);
                                }
////the Specified projection
end-----------------------------------------------------

                                var newMap = new 
GMapType(G_NORMAL_MAP.getTileLayers(), new
dituProjection(0.002,0.003), 'the map is ok');
//-------------------------------------------------------------------------------------------------------------------------------------------------------------

how i write the codes in v3?
how to use the
"GMapType","GProjection","G_NORMAL_MAP.getProjection()","G_NORMAL_MAP.getTileLayers()"
in v3?
please explained in detail,thank you!!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to