javascript - How to push 2044 zipcodes in bingmaps without the error An expression is too long or complex to compile? -


i trying make polygons of dutch (4044)zipcodes in bingmaps. each zipcode has 10 1000 coordinates. tried following code , works 200 zipcodes:

var polygoncolor = new microsoft.maps.color(100, 255, 0, 0); var  pc1011 = new array ( new microsoft.maps.location(52.372203,4.913825), new microsoft.maps.location(52.375787,4.912745), new microsoft.maps.location(52.37605,4.911752));          var polygon1011 = new microsoft.maps.polygon(pc1011  , {             fillcolor: polygoncolor,             strokecolor: polygoncolor         }); map.entities.push(polygon1011); 

i have tried this, love see work:

var mymappings = [ {  pc: "1011", coor: new array(      new microsoft.maps.location(52.365669,4.901578),      new microsoft.maps.location(52.372203,4.913825),      new microsoft.maps.location(52.378387,4.905391) )},   {          pc: "1012", coor: new array(     new microsoft.maps.location(52.381136,4.89783),     new microsoft.maps.location(52.372203,4.913825),     new microsoft.maps.location(52.382393,4.900011) )}];  (var = 0; < mymappings.length; += 1) {      var polygoncolor = new microsoft.maps.color(100, 0, 0, 100);      var polygon = new microsoft.maps.polygon(mymappings[i].coor, {        fillcolor: polygoncolor,        strokecolor: polygoncolor      });      map.entities.push(polygon);  } 

both works limited zipcodes. when tried push more ~300 zipcode/polygons ~200 coordinates wil return me error below. i’m using visual studio .net bingmaps. know how fix error? or maybe whole other solution show dutch zipcodes? server error in '/' application.

compilation error description: error occurred during compilation of resource required service request. please review following specific error details , modify source code appropriately.

compiler error message: cs1647: expression long or complex compile

source error:

[no relevant source lines]

source file: line: 0

show detailed compiler output:

c:\program files (x86)\iis express> "c:\windows\microsoft.net\framework\v4.0.30319\csc.exe" /t:library /utf8output /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\5c6e370b\4d00bf6a_4fbad001\owin.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\7681319b\0974f36a_4fbad001\microsoft.owin.security.facebook.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\3da77e53\b169fadb_6ebdd001\newtonsoft.json.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\bd686e79\7b2fc066_4fbad001\system.web.optimization.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\system.servicemodel.activation\v4.0_4.0.0.0__31bf3856ad364e35\system.servicemodel.activation.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\system.web.dynamicdata\v4.0_4.0.0.0__31bf3856ad364e35\system.web.dynamicdata.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\system.servicemodel.activities\v4.0_4.0.0.0__31bf3856ad364e35\system.servicemodel.activities.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\microsoft.csharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\microsoft.csharp.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\f842014c\0fecca6a_4fbad001\microsoft.owin.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\6f59fdc9\8d4b0b6b_4fbad001\microsoft.owin.security.oauth.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\system.web.webpages.deployment\v4.0_2.0.0.0__31bf3856ad364e35\system.web.webpages.deployment.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\56402444\297ced66_4fbad001\system.web.helpers.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\system.web.extensions\v4.0_4.0.0.0__31bf3856ad364e35\system.web.extensions.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\system.data.datasetextensions\v4.0_4.0.0.0__b77a5c561934e089\system.data.datasetextensions.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\system.activities\v4.0_4.0.0.0__31bf3856ad364e35\system.activities.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\8f6cdbf0\c5e7276b_4fbad001\microsoft.owin.security.twitter.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\microsoft.visualstudio.web.pageinspector.loader\v4.0_1.0.0.0__b03f5f7f11d50a3a\microsoft.visualstudio.web.pageinspector.loader.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\system.xml\v4.0_4.0.0.0__b77a5c561934e089\system.xml.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\103b82c7\dd40f266_4fbad001\system.web.webpages.razor.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\b4762c60\e1aea267_4fbad001\antlr3.runtime.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\cd282b56\31b2b06a_4fbad001\microsoft.aspnet.identity.entityframework.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\203e57f7\3b98386b_4fbad001\microsoft.owin.security.microsoftaccount.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\255a589c\619f9d6a_4fbad001\microsoft.aspnet.identity.owin.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\system.workflowservices\v4.0_4.0.0.0__31bf3856ad364e35\system.workflowservices.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\system.web.applicationservices\v4.0_4.0.0.0__31bf3856ad364e35\system.web.applicationservices.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\system.core\v4.0_4.0.0.0__b77a5c561934e089\system.core.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\system.identitymodel\v4.0_4.0.0.0__b77a5c561934e089\system.identitymodel.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\system.servicemodel\v4.0_4.0.0.0__b77a5c561934e089\system.servicemodel.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\c3f526d4\ebee8c6a_4fbad001\microsoft.aspnet.identity.core.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\system.configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\system.configuration.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\6edcd541\3d3ce677_c4c3d001\maps.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\6e7a6b7d\adad6769_4fbad001\entityframework.sqlserver.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\0503b2c1\4f37176b_4fbad001\microsoft.owin.security.google.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\system.xml.linq\v4.0_4.0.0.0__b77a5c561934e089\system.xml.linq.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\c63f78a4\77ee4067_4fbad001\system.web.mvc.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\cc81fdfe\83deef66_4fbad001\system.web.webpages.deployment.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\app_global.asax.etzehoqu.dll" /r:"c:\windows\microsoft.net\assembly\gac_32\system.web\v4.0_4.0.0.0__b03f5f7f11d50a3a\system.web.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\110d2b98\cb5fff6a_4fbad001\microsoft.owin.security.cookies.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\53ac7b7e\2772c667_4fbad001\webgrease.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\system.runtime.serialization\v4.0_4.0.0.0__b77a5c561934e089\system.runtime.serialization.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\system.web.webpages.deployment\v4.0_1.0.0.0__31bf3856ad364e35\system.web.webpages.deployment.dll" /r:"c:\windows\microsoft.net\assembly\gac_32\system.data\v4.0_4.0.0.0__b77a5c561934e089\system.data.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\system.drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\system.drawing.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\mscorlib.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\76481f41\adad6769_4fbad001\entityframework.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\microsoft.web.infrastructure\v4.0_1.0.0.0__31bf3856ad364e35\microsoft.web.infrastructure.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\efc86ab6\356c9c66_4fbad001\system.web.razor.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\system.componentmodel.dataannotations\v4.0_4.0.0.0__31bf3856ad364e35\system.componentmodel.dataannotations.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\system.servicemodel.web\v4.0_4.0.0.0__31bf3856ad364e35\system.servicemodel.web.dll" /r:"c:\windows\microsoft.net\assembly\gac_32\system.enterpriseservices\v4.0_4.0.0.0__b03f5f7f11d50a3a\system.enterpriseservices.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\0a93f772\4788e76a_4fbad001\microsoft.owin.security.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\72fa3533\2b3ad96a_4fbad001\microsoft.owin.host.systemweb.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\system.web.services\v4.0_4.0.0.0__b03f5f7f11d50a3a\system.web.services.dll" /r:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\assembly\dl3\031deb56\dd40f266_4fbad001\system.web.webpages.dll" /r:"c:\windows\microsoft.net\assembly\gac_msil\system\v4.0_4.0.0.0__b77a5c561934e089\system.dll" /out:"c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\app_web_index.cshtml.a8d08dba._pu9obdf.dll" /d:debug /debug+ /optimize- /w:4 /nowarn:1659;1699;1701;612;618 /warnaserror- "c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\app_web_index.cshtml.a8d08dba._pu9obdf.0.cs" "c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\root\f424c542\388c287e\app_web_index.cshtml.a8d08dba._pu9obdf.1.cs"

microsoft (r) visual c# compiler version 4.0.30319.18408

for microsoft (r) .net framework 4.5 copyright (c) microsoft corporation. rights reserved.

fatal error cs1647: expression long or complex compile

haven't seen error before. looks in asp.net. in case trying render 4044 zip code polygons 200 coordinates each won't work. that's data javascript handle. create lot of dom objects , ton of data reproject every time map moves. large download user (guessing more 9mb in size).

that said possible visualize millions of polygons on bing maps right architecture. trick turn data tiles (bunch of images). way browser has handle few images @ time. reduce amount of data user have download. here demo made rendered 175,000 polygons have upwards of 200 coordinates each: http://onsbingmapsdemo.cloudapp.net/ in sample, drag pushpin on polygon retrieve info it. have alternatively used mouse click, wanted try different in app.

there couple ways generate these tile layers. there open source mvc app here: http://ajaxmapdataconnector.codeplex.com/

i have white paper isn't yet published goes through how this. if email me @ ricky_brundritt @ hotmail.com, i'll send copy of paper , code samples.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -