How to Zoom to a Marker using C1 Map

Posted by: trevors on 19 March 2020, 6:05 am EST

    • Post Options:
    • Link

    Posted 19 March 2020, 6:05 am EST

    Hello! C1Map is a very neat tool. How can we zoom to a specific spot on the map? I want to zoom into a specific latitude and longitude.

    We can create a marker there using VectorPlacemarks. I can even zoom the map in and out using the ZoomAt() method.

    Is it possible to provide coordinates to ZoomAt()? Unfortunately it requires a System.Drawing.Point.

    Any help would be greatly appreciated! I checked all the documentation and while there is a nice document written up for C1Map is neglects to show how the ZoomAt() method or GeograpaphicToScreen() methods work.

    Thanks,

    -Trevor Smith

  • Posted 19 March 2020, 6:40 am EST

    I figured it out. Both those ZoomAt() and GeographicToScreen() methods were not helpful.

    Using SetZoomCenter() I am able to say “zoom in a lot, like 5 or 6, and go to this lat lon”.

    Thanks,

    -Trevor

  • Posted 19 March 2020, 8:26 pm EST

    Hi Trevor,

    Great that could you work it out yourself. Should you need any assistance in a further matter, do let us know.

    ~Ruchir

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels