Why are markers not shown on PrimeFaces GMap? -


i use following code initialize mapmodel , add test marker.

@postconstruct public void init() {   advancedmodel = new defaultmapmodel();   advancedmodel.addoverlay(new marker(new latlng(36.890257, 30.707417), "test")); } 

it used gmap model following xhtml.

<p:gmap   id="gmap"   center="36.890257,30.707417"   zoom="12"   type="roadmap"   model="#{mapbean.advancedmodel}"   style="width:100%; height:400px;" /> 

when open page in browser map shows not marked. suggestions?

the problem on using spring framework. class had annotated @named instead of @managedbean


Comments

Popular posts from this blog

php - Autoloader issue not returning Class -

java - How to put two numbers separated by a space into two different arrays -

c++ - Why am i getting wrong values when performing PE base relocation? -