Start experimenting with another approach for maps.
[gpl/argeo-suite.git] / environment / org.argeo.geo.ui / src / org / argeo / support / openlayers / OverviewMap.java
index 8ecdc1c6f2d28060d2260f91fdce5c846aac6aff..b2fd01ed0839967a80713ad3cc43e9f11c504e61 100644 (file)
@@ -56,11 +56,11 @@ public class OverviewMap implements CmsUiProvider {
                Query query = context.getSession().getWorkspace().getQueryManager()
                                .createQuery("SELECT * FROM [" + EntityType.geopoint.get() + "]", Query.JCR_SQL2);
                List<Node> geoPoints = JcrUtils.nodeIteratorToList(query.execute().getNodes());
-               OpenLayersMap apafMap = new OpenLayersMap(parent, SWT.NONE, getClass().getResource("map-osm.html"));
-               apafMap.setLayoutData(CmsUiUtils.fillAll());
+               OpenLayersMap map = new OpenLayersMap(parent, SWT.NONE, getClass().getResource("map-osm.html"));
+               map.setLayoutData(CmsUiUtils.fillAll());
 
                // apafMap.setZoom(7);
                // apafMap.setCenter(-2.472, 8.010);
-               apafMap.addPoints(geoPoints);
+               map.addPoints(geoPoints);
        }
 }