Commit 93cd2d72 authored by Kaitlyn's avatar Kaitlyn
Browse files

Moved add_feature call to after the map displays.

parent fd64188d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -190,8 +190,6 @@ class planetary_maps:
    def create_map(self):
        self.planet_map = Map(layers=tuple(self.layers), center=(0, 0), zoom=1, crs='EPSG4326')

        self.add_wfs_features()

        draw_control = DrawControl()
        draw_control.polyline =  {
            "shapeOptions": {
@@ -251,6 +249,9 @@ class planetary_maps:
        display(self.wkt_text_box)
        display(self.wkt_button)

        # Display map first, then add features
        self.add_wfs_features()
    
    def add_wkt(self, wktString):
        try:
            g1 = shapely.wkt.loads(wktString)