Good Afternoon!  

You caught me just in the process of releasing 8.0-M2. One of the main things 
we did for this release was sort out the classes you are talking about.

If you change your pom.xml over to 8.0-M2 it should work now? I will be 
uploading things shortly and making an announcement etc...  

--  
Jody Garnett


On Thursday, 6 October 2011 at 2:50 PM, 郭阳耀 wrote:

> Hi there.
> I am a beginner in GeoTools.
> I use GeoTools 8.0-M1
> The code if from
> http://docs.geotools.org/latest/userguide/tutorial/quickstart/eclipse.html
> .........
>        MapContent map = new MapContent();
>         map.setTitle("Using cached features");
>         Style style = SLD.createSimpleStyle(featureSource.getSchema());
>         Layer layer = new FeatureLayer(cache, style);
>         map.addLayer(layer);
>  
>         // Now display the map
>         JMapFrame.showMap(map);
> .............  
> The question is aobut JMapFrame.showMap(MapContext context).
> Eclipse points out that the method showMap(MapContext ) in the type JMapFrame 
> is not applicable for the arguments(MapContent ),So it is MapContext ,not 
> MapContent .I change the code:
> MapContent map = new MapContent();
> to  
> MapContext map = new MapContext();
> It works.
> but eclipse point out that the type MapContext  is deprecated.
> So How can I use MapContent ?
> Thanks in advance.
>   
>   
>   
>   
>   
>   
>  
>  
>  
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected] 
> (mailto:[email protected])
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to