darshakshah1988 / gmaps4jsf

Automatically exported from code.google.com/p/gmaps4jsf
0 stars 1 forks source link

type attribute on <m:map /> causes javascript error #188

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. declare <m:map type="G_SATELLITE_MAP" ../>

What is the expected output? What do you see instead?
Expect: Map rendered with satellite overlay.  
Get: No map rendered,
javascript error: SCRIPT5009: 'G_SATELLITE_MAP' is undefined  

This also occurs using type 'G_NORMAL_MAP'

What version of the product are you using? On what operating system?
gmaps 3.0.0, windows 7, IE9

Original issue reported on code.google.com by wbret...@gmail.com on 11 Jan 2013 at 5:58

GoogleCodeExporter commented 8 years ago
This is not a defect. The old map types are deprecated in Google Maps 3. 

Use these types instead:
(HYBRID, ROADMAP, and SATELLITE, TERRAIN)

Check the documentation:
http://code.google.com/p/gmaps4jsf/issues/detail?id=188

Original comment by Hazem.sa...@gmail.com on 13 Jan 2013 at 12:07

GoogleCodeExporter commented 8 years ago
For example, to render a map of TERRAIN type you can do this as follows:

<m:map width="300" height="300" latitude="30.01" longitude="31.14" 
type="google.maps.MapTypeId.TERRAIN"/>

Original comment by Hazem.sa...@gmail.com on 13 Jan 2013 at 12:17