<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello all,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am using a vector layer to highlight certain areas on a mapping application of I’ve created. Each click resets the protocol url to a new location and refreshes the layer, pulling down a new feature (in GML, from GeoServer). <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m having a strange issue – one of those GML files being pulled down by the vector layer is very large (800K). When I’m zoomed way into the map, the vector layer doesn’t highlight – whereas the smaller areas (smaller gml files…around 70K) around it highlight without issue. So I’m not sure what’s going on – I was using the GML (deprecated) layer, but I switched over to the Vector layer and I’m seeing the same issue. Does anyone have any ideas? I don’t think my code will be particularly helpful, but I’ll include it anyway….<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> Creating the layer… <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";background:white;mso-highlight:white'> <span style='color:black'>gmlLayer</span> <span style='color:#5C5C5C'>=</span> <b><span style='color:#0000C0'>new</span></b> <span style='color:black'>OpenLayers</span><span style='color:#5C5C5C'>.</span><span style='color:black'>Layer</span><span style='color:#5C5C5C'>.</span><span style='color:black'>Vector</span><span style='color:#5C5C5C'>(</span> <span style='color:#005C00'>"GML"</span><span style='color:#5C5C5C'>,</span> <span style='color:#5C5C5C'>{</span><span style='color:black'>strategies</span><span style='color:#5C5C5C'>:</span> <span style='color:#5C5C5C'>[</span><b><span style='color:#0000C0'>new</span></b> <span style='color:black'>OpenLayers</span><span style='color:#5C5C5C'>.</span><span style='color:black'>Strategy</span><span style='color:#5C5C5C'>.</span><span style='color:black'>Fixed</span><span style='color:#5C5C5C'>()],</span></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";background:white;mso-highlight:white'> <span style='color:black'>protocol</span><span style='color:#5C5C5C'>:</span> <b><span style='color:#0000C0'>new</span></b> <span style='color:black'>OpenLayers</span><span style='color:#5C5C5C'>.</span><span style='color:black'>Protocol</span><span style='color:#5C5C5C'>.</span><span style='color:black'>HTTP</span><span style='color:#5C5C5C'>({</span></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";background:white;mso-highlight:white'> <span style='color:black'>url</span><span style='color:#5C5C5C'>:</span> <span style='color:#005C00'>"ajax/ajaxProxy.cfm?proxyURL=http%3A%2F%2Fmywebsite.com%3A8080%2Fgeoserver%2Fwfs%3Frequest%3Dgetfeature%26service%3Dwfs%26version%3D1.0.0%26srsname%3Depsg%3A900913%26typename%3Dpg_service_area%26filter%3D%3Cogc%3AFilter%20%20xmlns%3Aogc%3D%22http%3A%2F%2Fogc.org%22%3E%3Cogc%3AFeatureId%20fid%3D%22service_area.12342%22%2F%3E%3C%2Fogc%3AFilter%3E"</span><span style='color:#5C5C5C'>,</span></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";background:white;mso-highlight:white'> <span style='color:black'>format</span><span style='color:#5C5C5C'>:</span> <b><span style='color:#0000C0'>new</span></b> <span style='color:black'>OpenLayers</span><span style='color:#5C5C5C'>.</span><span style='color:black'>Format</span><span style='color:#5C5C5C'>.</span><span style='color:black'>GML</span><span style='color:#5C5C5C'>()</span></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";background:white;mso-highlight:white'> <span style='color:#5C5C5C'>})</span></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";background:white;mso-highlight:white'> <span style='color:#5C5C5C'>});</span></span><span style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C'>Each time a click occurs, a new url is passed in. I’ve verified that the URL for the large GML file returns a valid GML file. There’s nothing particularly strange about it. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";background:white;mso-highlight:white'> <span style='color:black'>setUrl</span> <span style='color:#5C5C5C'>=</span> <b><span style='color:#0000C0'>function</span></b><span style='color:#5C5C5C'>(</span><span style='color:black'>url</span><span style='color:#5C5C5C'>){</span></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";background:white;mso-highlight:white'> <b><span style='color:#0000C0'>gmlLayer</span></b><span style='color:#5C5C5C'>.</span><span style='color:black'>protocol</span><span style='color:#5C5C5C'>.</span><span style='color:black'>options</span><span style='color:#5C5C5C'>.</span><span style='color:black'>url</span> <span style='color:#5C5C5C'>=</span> <span style='color:black'>url</span><span style='color:#5C5C5C'>;</span></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";background:white;mso-highlight:white'> <span style='color:black'>gmlLayer</span><span style='color:#5C5C5C'>.</span><span style='color:black'>refresh</span><span style='color:#5C5C5C'>();</span></span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";background:white;mso-highlight:white'> <span style='color:#5C5C5C'>};</span></span><span style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C'><o:p> </o:p></span></p><p class=MsoNormal>Let me know if there’s anything else that would be particularly diagnostically helpful.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Aaron<o:p></o:p></p></div></body></html>