Thank you so much and it really helped. 

Yanli 

On Thursday, December 2, 2021 at 7:49:25 AM UTC-6 barryb...@gmail.com wrote:

> The  viewRefreshMode means the BBOX will automatically be appended to 
> query string, so you shouldn't need that. (unless changed with <viewFormat>)
>
> So just put the query values you need: (the default ViewFormat will be 
> appended automatically) 
>
>     <Link>
>
> *       <href>https://grid.plus.codes/kml?level=4 
> <https://grid.plus.codes/kml?level=4></href>*
>        <viewRefreshMode>onStop</viewRefreshMode>
>        <viewRefreshTime>2</viewRefreshTime>
>     </Link>
>
>
> If you really do want a 'fixed' BBOX, then will just need to correctly 
> encode as a URL
>
>     <Link>
> *        
>  
> <href>https://grid.plus.codes/kml?BBOX=-94.796,31.476,-94.754,31.517&amp;level=4
>  
> <https://grid.plus.codes/kml?BBOX=-94.796,31.476,-94.754,31.517&amp;level=4></href>*
>     </Link>
>
>
> Shouldn't be spaces in in a URL, use %20 if must. But standard BBOX 
> doesn't include spaces 
> And & is the way to 'separate' params in a standard query string. 
> (its just even more complicated complicated, that & itself needs to be 
> encloded as &amp; in XML - as & is used for XML Entities) 
>
> And REMOVE the viewRefreshMode/viewRefreshTime - as its no longer a 
> 'dynamic' link. Its just a plain simple network link. 
> On Thursday, 2 December 2021 at 02:54:46 UTC yan...@gmail.com wrote:
>
>> Hi, any one can help me with this specific question? I need to enforce 
>> the level to 4, the kml file would not work, in other words, how to add 
>> "level=4" into the code correctly? thanks. 
>>
>>     <Link>
>>       <href>https://grid.plus.codes/kml?BBOX=-94.796, 31.476, -94.754, 
>> 31.517, level=4</href>
>>       <viewRefreshMode>onStop</viewRefreshMode>
>>       <viewRefreshTime>2</viewRefreshTime>
>>   <grid>level=4</grid>
>>   <level>4</level>
>>     </Link>
>>
>> Yanli 
>>
>

-- 
Public site: http://www.openlocationcode.com/
Github project: https://github.com/google/open-location-code
Demo site: http://plus.codes/
--- 
You received this message because you are subscribed to the Google Groups "Plus 
Codes Community Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-location-code+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/open-location-code/01cc38e2-f6f5-41c5-a0c1-a3c5b9c38cfen%40googlegroups.com.

Reply via email to