Question: I have a Huawei Modem connected to my VB.net project
all AT Commands work such as `CONNECT`, `READ` and `SEND SMS`

The only thing that I cannot work with is the `DELETE SMS`

I have this code:

```
With SerialPort1
    .Write("AT")
    Threading.Thread.Sleep(1000)
    .Write("AT+CMGF=1")
    Threading.Thread.Sleep(1000)
    .Write("AT+CPMS=""SM""" & vbCrLf)
    Threading.Thread.Sleep(1000)
    .Write("AT+CMGD=1,4")
    Threading.Thread.Sleep(1000)
    MsgBox(at_status.ToString)            
End With

```

But the `at_status` throws me "ERROR" always.  

`AT+CMGD=1,4` as what I've read on the documentation is the right command but it throws me an "ERROR" always.

What do you think is wrong with my code? All other command works, except this.

Answer: 
This might be a bit dirty, but maybe you want to implement a check like described in <http://allthingssmitty.com/2016/09/12/checking-if-font-awesome-loaded/>.
As soon as that returns true, you initialize your map.

P.S. Is there a specific reason that you use an icon font? Why don't you use an SVG icon?
You might be able to get away with redrawing the map using `setTimeout`

```
setTimeout(function(){ map.render(); }, 1000);

```

Though it's probably best to use something that waits for everything to load before drawing. See the top answer here if you can use jQuery here [Is it possible to wait until all javascript files are loaded before executing javascript code?](https://stackoverflow.com/questions/11258068/is-it-possible-to-wait-until-all-javascript-files-are-loaded-before-executing-ja)