Hi, I have been having the same problem. I used the code from the Quickstart
Tutorial and I have set the GeoTools version to 8-SNAPSHOT. Hower, I get the
following error:

method showMap in class org.geotools.swing.JMapFrame cannot be applied to
given types
  required: org.geotools.map.MapContext
  found: org.geotools.map.MapContent

The Quickstart tutorial creates a map of type MapContent and then calls
showMap(map). However this won't work. Casting the map object to MapContext
won't compile either. Any ideas how I can fix this? If I use MapContext map
= new DefaultMapContext() the code shows as deprecated...

....
MapContent map = new MapContent();
....
JMapFrame.showMap(map);
... 

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Problem-method-JMapFrame-showMap-tp6578002p6600423.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to