version 1.0.4 Google_Map problem

Bug #499885 reported by Hitman911
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Yii GeoCoder Extension
Invalid
Undecided
Brian Armstrong

Bug Description

In this version (version 1.0.4) when i use the code of geocoder documentation in yii siteweb when i use the yahoo driver it work perfectly
but when i change the driver to google and sure i change the appropriate key for a google map api the extension don't work, and using firebug i can see that the content DIV is created but it's hidden

Revision history for this message
Brian Armstrong (brian-killermonk) wrote :

Caused by browser not recognizing div content as a block. Confirming bug for potential feature addition to specify width and height of dive.

Changed in yiigeo:
assignee: nobody → Brian Armstrong (brian-killermonk)
status: New → Confirmed
Revision history for this message
Brian Armstrong (brian-killermonk) wrote :

This is not *technically* a bug with the extension itself. This is caused because the browser does not recognize the contents of the "div" as a block item. Because it is not recognized as a block item it is given no default height and does not display. Here is the fastest solution for you to use.

Create a new CSS style:
#map_canvas {
    width: 500px;
    height: 300px;
}

That will force the browser to give the div a width/height and the contents of the div will show up. I have run into this same thing before with map generation before, I don't know why I didn't think to document the behavior.

I will update the documentation on the Yii website to make a note of this behavior. I also have created a feature request for the ability to specify the width & height of the map canvas div when you render the map.

Changed in yiigeo:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.