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 - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -