Re: [Flex] Map Component

2016-01-19 Thread Deepak MS
Is there any option to avoid multiple instances of the map? I did try using extent var et:MapExtent = new MapExtent(90, -90, 180, -180); // myMap.map.setExtent(et); myMap.extent = et; But there is no change in the map. The problem is, for US map, some part gets

Re: [Flex] Map Component

2016-01-19 Thread OmPrakash Muppirala
Does it have to be zoomed out so much? If you zoom in a bit, I think this issue will get fixed. Thanks, Om On Jan 19, 2016 10:04 PM, "Deepak MS" wrote: > Is there any option to avoid multiple instances of the map? I did try using > extent > > var et:MapExtent = new

Re: [Flex] Map Component

2016-01-19 Thread OmPrakash Muppirala
Hmm this looks like a big in the mapping component, and probably not just the AS3 version. I think contacting the Modest Map folks might be the best option. Thanks, Om On Jan 19, 2016 10:38 PM, "Deepak MS" wrote: > Nope. Zoom value is 4 and this is how it's shown on

Re: [Flex] Map Component

2016-01-19 Thread Deepak MS
Well, I tried earlier approach for 4 days, but it didn't quite work as expected. Entire map needs to be rendered using svg alone or based on long/lat points. Its difficult to merge lat/long based custom regions over svg. But modestmap worked well. Thank you so much for sharing those links. On 15

Re: [Flex] Map Component

2016-01-14 Thread OmPrakash Muppirala
Cool. I see the UK map rendering fine. The next step is to figure out why the co-ordinates are not rendering. The key is to get the correct projection. I am pretty sure GeoJSON co-ordinates are in Mercator projection. Here is a nice article that seems to be solving a similar problem. See if

Re: [Flex] Map Component

2016-01-14 Thread OmPrakash Muppirala
Also, if you have not already seen it, ModestMaps has a pretty cool AS3 implementation. https://github.com/migurski/modestmaps-as3 I have used it for desktop, web and iOS apps. You can draw markers, polygons etc. just like you would on google maps. If you dont have a lot of success figuring

Re: [Flex] Map Component

2016-01-13 Thread Deepak MS
Thanks Om. I tried that library with following code: var mc:MercatorProjection = new MercatorProjection(); for(var i:int = 0; i < a.length; i++) // a here is array of arrays - [ [ 151.25, -33.74 ],[ 151.25, -33.74 ] ..] { var ltlg:Array =

Re: [Flex] Map Component

2016-01-13 Thread OmPrakash Muppirala
Yes, it is lat and long. Out is the output point which should get updated during the projection. Thanks, Om On Jan 13, 2016 3:10 AM, "Deepak MS" wrote: > Thanks Om. > > I tried that library with following code: > var mc:MercatorProjection = new

Re: [Flex] Map Component

2016-01-13 Thread Deepak MS
Ok. But it isn't converting lat\long values to expected path data coordinates I believe. On Wed, Jan 13, 2016 at 5:37 PM, OmPrakash Muppirala wrote: > Yes, it is lat and long. Out is the output point which should get updated > during the projection. > > Thanks, > Om > On

Re: [Flex] Map Component

2016-01-13 Thread OmPrakash Muppirala
Give me the list of lat/long co-ordinates and the end result shape they should look like. I will try out a few things and see we can make this work. Thanks, Om On Wed, Jan 13, 2016 at 7:36 AM, OmPrakash Muppirala wrote: > > On Jan 13, 2016 4:36 AM, "Deepak MS"

Re: [Flex] Map Component

2016-01-13 Thread Deepak MS
Oh I really didn't knew that those values are swapped. Generally it would be lat\lng. Sorry for that. That was a sample data I got from the team and yes that is Oz data(NSW boundary). Anyway, to make it simple. I have created a project including the library:

Re: [Flex] Map Component

2016-01-13 Thread OmPrakash Muppirala
I took the coordinates from your earlier code and tried it out: override protected function createMap():void { var mc:MercatorProjection = new MercatorProjection(); mc.initialize(); var a:Array = [ [151.2571536004, -33.743317043500042 ], [151.2598582717,-33.74384022351 ],

Re: [Flex] Map Component

2016-01-13 Thread OmPrakash Muppirala
On Wed, Jan 13, 2016 at 2:02 PM, OmPrakash Muppirala wrote: > I took the coordinates from your earlier code and tried it out: > > override protected function createMap():void > { > var mc:MercatorProjection = new MercatorProjection(); > mc.initialize(); > var a:Array = [

Re: [Flex] Map Component

2016-01-13 Thread Paul Hastings
Latitude range is +/-90°. Might be the coords are swapped longitude, latitude. If so, puts that object somewhere in oz not UK. Were these coords the result of projecting? Bad imput params? PS: in the openscales project there's a port of proj4 to AS that works a treat.