I have a GeoJSON from NaturalEarth for world state boundaries and I want to display it with only without backgroung. But also, I want to add a OSM layer as another baselayer option.
The code I am using is the following one, but when I check it, as OSM is in another projection, the center map does not work. However if I change the projection of "mapDiv" the one that does not work is the vector layer with the GeoJSON information.
I have try something similar to this example, but I continue having problems when switching between the layers.
The GeoJSON has been created with SHP files from NaturalEarth with ogr2ogr command.
أكثر...
The code I am using is the following one, but when I check it, as OSM is in another projection, the center map does not work. However if I change the projection of "mapDiv" the one that does not work is the vector layer with the GeoJSON information.
I have try something similar to this example, but I continue having problems when switching between the layers.
The GeoJSON has been created with SHP files from NaturalEarth with ogr2ogr command.
أكثر...