|
POST
|
Stuart, Try adding this line to the very end of the init function in the OverviewWidget.mxml setTimeout(updateOverviewExtent, 4000);
... View more
06-03-2010
12:54 PM
|
0
|
0
|
2015
|
|
POST
|
Stuart, You need to debug and put a breakpoint on this line if (dataTable.containsKey("ovMap")) to see if you are getting into this if statement.
... View more
06-03-2010
12:42 PM
|
0
|
0
|
2015
|
|
POST
|
Did you replace your whole index.mxml or just grab the parts you needed? This is what I am getting.
... View more
06-03-2010
12:36 PM
|
0
|
0
|
1593
|
|
POST
|
Stuart, Not sure I understand... Can you attach the image it produced? I have been producing some good looking images using this code today.
... View more
06-03-2010
12:21 PM
|
0
|
0
|
1593
|
|
POST
|
Brad, Seems weird doesn't it... But the first is the last... When the MapManager starts adding the mapservices from the config.xml the first one listed is added to the map and sets the spatial reference of the map and then the next one gets added (on top of that one) and so on. So the LiveMapsWidget is showing it as one would visually expect to see it with the first layer at the bottom.
... View more
06-03-2010
11:54 AM
|
0
|
0
|
617
|
|
POST
|
Brad, Based on the order of your previous post the Map would get a SR of the Street map (WGS84) because that is the first one listed in the config.xml.
... View more
06-03-2010
11:44 AM
|
0
|
0
|
1412
|
|
POST
|
Brad, Those are WGS84 coordinates... If you want your map to be in UTM then you have to tell it that by setting the extent in UTM and making sure that the first map service loaded is UTM.
... View more
06-03-2010
11:32 AM
|
0
|
0
|
1412
|
|
POST
|
Stuart, Here is some code to add a black border around the Overview image private function clickHandler() : void
{
var ovBMDat:BitmapData;
if(dataTable){
if (dataTable.containsKey("ovMap"))
{
var recAC:ArrayCollection = dataTable.find("ovMap") as ArrayCollection;
ovBMDat = recAC.getItemAt(0) as BitmapData
var novBMDat:BitmapData = new BitmapData(ovBMDat.width + 2,ovBMDat.height + 2,true,0x000000);
var srcRect:Rectangle = new Rectangle(0, 0, ovBMDat.width, ovBMDat.height);
novBMDat.copyPixels(ovBMDat,srcRect,new Point(1,1));
}
}
var map:Map = SiteContainer.getInstance().controller.map;
const decoder: JPEGEncoder = new JPEGEncoder();
map.logoVisible=false;
map.scaleBarVisible=true;
map.zoomSliderVisible = false;
//SiteContainer.getInstance().mapManager.control.visible = false;
//get the current background color of the map
var currentMapColor:Object = map.getStyle("backgroundColor");
//set the background color to white
map.setStyle("backgroundColor", "#CCCCCC");
//validate the changes
map.validateNow();
var bmpDat:BitmapData = ImageSnapshot.captureBitmapData(map);
if (novBMDat){
var pnt:Point = new Point((bmpDat.width - novBMDat.width), (bmpDat.height - novBMDat.height));
var rect:Rectangle = new Rectangle(0, 0, novBMDat.width, novBMDat.height);
bmpDat.merge(novBMDat,rect,pnt,mult,mult,mult,mult);
}
const encoder: JPEGEncoder = new JPEGEncoder(80);
map.logoVisible=true;
map.scaleBarVisible=true;
map.zoomSliderVisible = true;
map.setStyle("backgroundColor", currentMapColor);
//validate the changes
map.validateNow();
const fileReference:FileReference = new FileReference();
fileReference.save(encoder.encode(bmpDat),"map.jpg");
}
... View more
06-03-2010
11:17 AM
|
0
|
0
|
1593
|
|
POST
|
Brad, What does the initialExtent and fullExtent in your config file look like?
... View more
06-03-2010
11:13 AM
|
0
|
0
|
1412
|
|
POST
|
Stuart, This was a little tricky and is still a little unpolished but here it is.
... View more
06-03-2010
10:39 AM
|
0
|
0
|
1593
|
|
POST
|
Shawn, Not finding some of your addresses is not unusual. Try setting the minscore to 60.
... View more
06-03-2010
08:59 AM
|
0
|
0
|
1022
|
|
POST
|
Shawn, So what is the Parcel Locator doing? What is the error?
... View more
06-03-2010
08:29 AM
|
0
|
0
|
1022
|
|
POST
|
Shawn, OK can you post your modified ParcelNotificationWidget.xml then?
... View more
06-03-2010
08:03 AM
|
0
|
0
|
1555
|
|
POST
|
Shawn, The best ting to do is always get the widget working using the sample data that is configured in the xml before you change that to use your own data. Once you have the widget working then you can switch it to yours. I just imported a new clean SFV 1.3 project and in two minutes had the parcel notification widget up and running using the provided ParcelNotificationWidget.xml data.
... View more
06-03-2010
07:01 AM
|
0
|
0
|
1555
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-06-2020 05:32 AM | |
| 1 | 07-10-2018 05:49 AM | |
| 9 | 01-28-2022 10:58 AM | |
| 1 | 03-28-2022 06:20 AM | |
| 1 | 01-30-2019 07:38 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-01-2025
05:12 AM
|