Hi, no news about this?

Il giorno martedì 20 marzo 2018 12:27:18 UTC+1, (sconosciuto) ha scritto:
> Hi,
> I'm Matteo a gis developer.
> I have another problem for your attention.
> I need to start drawing a feature from existing coordinates.
> Imagine that i have some starting coordinates coming from a form called 
> previousCoord
> What a tried is the following:
> geometryFunction = (coordinates, geometry) => {
>   let geom = geometry;
>   if (!geom) {
>     geom = this.createOLGeometry({type: geomType, coordinates: 
> previousCoord});
>   }
>   geom.setCoordinates(previousCoord.concat(coordinates));
>   return geom;
> };
> What happen is that when the user clicks on the map the previousCoord are 
> effectively drawn, but they are not drawn from the very start.
> It is necessary the click event to trigger the first time the 
> geometryFunction. is there a workaround for this?
> I've seen that there is private method startDrawing_  that could (haven't 
> tried it yet) be useful in may case (but it is private) any chance can this 
> become public?
> Can you give me any suggestion on how to achieve what i've asked you?
> Cheers,
> Matteo

You received this message because you are subscribed to the Google Groups 
"OpenLayers Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to openlayers-dev+unsubscr...@googlegroups.com.
To post to this group, send email to openlayers-dev@googlegroups.com.
Visit this group at https://groups.google.com/group/openlayers-dev.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.
  • [openlaye... openlayers-dev+APn2wQdkFIvxJ4F_rlcIe7LMuz9Miy-L9iKjAjYueMJRdbYix
    • [ope... openlayers-dev+APn2wQdkFIvxJ4F_rlcIe7LMuz9Miy-L9iKjAjYueMJRdbYix

Reply via email to