Hi,

Good news! I finally got it worked, adding the lat/lon from the list to the
map and as a separate layer to the legend by using OpenLayers for defining
the vector and source and the following lines:

var layerMgr = viewer.getLayerManager();
 var layerInfo = layerMgr.addLayer(name, vectorLayer);
 viewer.dispatch(parent.MapGuide.Actions.Map.mapLayerAdded(viewer.getMapName(),
layerInfo));

Happy Holidays!



On Fri, Dec 15, 2023 at 7:26 PM Sympatico <pierre.cardi...@sympatico.ca>
wrote:

> Hi,
>
> Did you give a look at
> https://github.com/jumpinjackie/mapguide-react-layout-example ?
>
> Regards
>
> Pierre
>
_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to