Smashinglabs

Sebastian Poręba's blog

FAQ

FAQ

Q: I have a great idea for gMap feature!
A: Great! Go to idea.informer.com and post your idea here.
Q: How can I attach my custom events to markers?
A: Use at least 3.1.0 and check out documentation.
Q: I want to have a map in tabs.
A: I use jQuery Tools tabs in examples, you can check source. Basic idea is to initialise map only when target div is visible. Otherwise it has 0px width and height. Find proper callback in your tabs documentation and create gMap when tab is activated. Also, remember to set some "isGmapInitialised" flag and do not repeat that on every tab activation, only on first!
Q: My markers do not load.
A: There are two common reasons of such problem. Check if your CSS is not screwing img or canvas tags inside of gMap, and also check if you have reasonable amount of geocoded (by address) markers, like less than 10. Google is blocking larger amount of requests.
Q: When I resize gMap div, some map tiles are missing.
A: google.maps.event.trigger($('#map').data('gmap').gmap, 'resize'); should load all missing tiles.
Q: How do I get longitude/latitude for a place?
A: You can use http://itouchmap.com/latlong.html to get the coordinates right from Google Maps.
Q: Does gMap work in every browser?
A: Since gMap utilizes jQuery and Google Maps API it should work in all common browsers.
Q: How can I check if Google Maps are compatible with browser?
A: GBrowserIsCompatible() is no longer valid for V3 API. Luckily, you don't need it at all. Simply place compatibility information in target div for your map. It will disappear if map loads correctly.
Q: Where can I get a Google Maps API key?
A: Good news everyone! Since V3 API you need no key to use Google Maps.
Q: Where can I get jQuery?
A: Please go here to download jQuery or hotlink it from CDN.
Q: I don't like the map marker! Where can I find replacement?
A: Take a look over here.
Q: With which jQuery versions gMap is compatible?
A: I tested it with 1.3.2 - 1.5.2 versions.
Q: Why is it called 3.0.0? Where is 2.0 version?
A: Well, it would look somewhat stupid, if version 1 supports version 2 API, version 2 version 3 API, etc. I decided to jump right to 3, so it refers to API version now. Upgrades will be called 3.x.0, and bugfix releases 3.x.y.

Still not satisfied? Feel free to contact me.

  • RSS
  • Facebook
  • Twitter

3D Tetris with Three

[include file="ThreejsTetrisMenu.php"] Joined or separated? Think about the way we play Tetris. ...

3D Tetris with Three

[include file="ThreejsTetrisMenu.php"] Preparation First you need to download Three.js: https://github.com/mrdoob/three.js I also use Stats ...

gMap 3.3.0 released

As always, you can download it from github. I had a ...

JavaScript performan

Trace JIT is no more I was surprised by the news that trace ...

Lecture for GTUG: Ja

My main topics were: Optimization in general DOM Reflow/repaint Garbage collector JIT Google Closure (Compiler/Tools/Library) You can ...

gMap 3.3.0 released

As always, you can download it from github. I had a ...

Lecture for GTUG: Ja

My main topics were: Optimization in general DOM Reflow/repaint Garbage collector JIT Google Closure (Compiler/Tools/Library) You can ...

Unit testing for jQu

In part 1 I described basics of unit testing in ...

Unit testing for jQu

There are few testing frameworks dedicated for frontend that are ...

What do we need for

Contents Better graphics Involve desktop game developers Easier animations Code like in C++ Fix WebGL Write ...