Bradley Trager
Bradley Trager

Reputation: 3590

Fixing coordinates of Jquery gmap

Is it possible to have a gmap that is a fixed view? In other words, there is no hand cursor that lets the user change the location of the map?

Here is my code:

$(document).ready(function(){
$("#map").gMap({ controls: false,
                  scrollwheel: false,
                      draggable: false,
                  markers: [{ latitude: 40.727047,
                              longitude: 1006.8,
                              icon: { image: "img/pin.png",
                                      iconsize: [32, 47],
                                      iconanchor: [32,47],
                                      infowindowanchor: [12, 0] } }
                            ],
                  icon: { image: "img/pin.png", 
                          iconsize: [26, 46],
                          iconanchor: [12, 46],
                          infowindowanchor: [12, 0] },
                  latitude: 44.47698,
                  longitude: 1006.8,
                  zoom: 15, });

});

Upvotes: 0

Views: 748

Answers (1)

kravits88
kravits88

Reputation: 13049

Might as well use a static map if your not using any of the controls:

static map documentation

otherwise you can customize any of the controls to be added with:

Gcontrol

Upvotes: 1

Related Questions