From e77d8b00f37ec376171954051e71e90a7f6a6da6 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 4 Jun 2022 08:42:10 -0700 Subject: [PATCH] move map images to public folder for use in API docs --- controllers/main.php | 2 +- .../images => public/map-images}/dot-large-blue.png | Bin .../images => public/map-images}/dot-large-gray.png | Bin .../map-images}/dot-large-green.png | Bin .../map-images}/dot-large-orange.png | Bin .../images => public/map-images}/dot-large-pink.png | Bin .../map-images}/dot-large-purple.png | Bin .../images => public/map-images}/dot-large-red.png | Bin .../map-images}/dot-large-yellow.png | Bin .../images => public/map-images}/dot-small-blue.png | Bin .../images => public/map-images}/dot-small-gray.png | Bin .../map-images}/dot-small-green.png | Bin .../map-images}/dot-small-orange.png | Bin .../images => public/map-images}/dot-small-pink.png | Bin .../map-images}/dot-small-purple.png | Bin .../images => public/map-images}/dot-small-red.png | Bin .../map-images}/dot-small-yellow.png | Bin {p3k/map/images => public/map-images}/fb.png | Bin {p3k/map/images => public/map-images}/google.png | Bin .../map-images}/large-blue-blank.png | Bin .../map-images}/large-blue-cutout.png | Bin .../map-images}/large-gray-blank.png | Bin .../map-images}/large-gray-cutout.png | Bin .../map-images}/large-gray-user.png | Bin .../map-images}/large-green-blank.png | Bin .../map-images}/large-green-cutout.png | Bin .../map-images}/large-orange-blank.png | Bin .../map-images}/large-orange-cutout.png | Bin .../map-images}/large-pink-blank.png | Bin .../map-images}/large-pink-cutout.png | Bin .../map-images}/large-purple-blank.png | Bin .../map-images}/large-purple-cutout.png | Bin .../map-images}/large-red-blank.png | Bin .../map-images}/large-red-cutout.png | Bin .../map-images}/large-yellow-blank.png | Bin .../map-images}/large-yellow-cutout.png | Bin .../map-images}/large-yellow-message.png | Bin .../map-images}/large-yellow-user.png | Bin .../map-images}/mapbox-attribution.png | Bin .../map-images}/mapbox-attribution.psd | Bin .../map-images}/powered-by-esri.png | Bin .../map-images}/powered-by-esri.psd | Bin .../map-images}/small-blue-blank.png | Bin .../map-images}/small-blue-cutout.png | Bin .../map-images}/small-gray-blank.png | Bin .../map-images}/small-gray-cutout.png | Bin .../map-images}/small-gray-message.png | Bin .../map-images}/small-gray-user.png | Bin .../map-images}/small-green-blank.png | Bin .../map-images}/small-green-cutout.png | Bin .../map-images}/small-green-user.png | Bin .../map-images}/small-orange-blank.png | Bin .../map-images}/small-orange-cutout.png | Bin .../map-images}/small-pink-blank.png | Bin .../map-images}/small-pink-cutout.png | Bin .../map-images}/small-pink-user.png | Bin .../map-images}/small-purple-blank.png | Bin .../map-images}/small-purple-cutout.png | Bin .../map-images}/small-red-blank.png | Bin .../map-images}/small-red-cutout.png | Bin .../map-images}/small-yellow-blank.png | Bin .../map-images}/small-yellow-cutout.png | Bin .../map-images}/small-yellow-user.png | Bin 63 files changed, 1 insertion(+), 1 deletion(-) rename {p3k/map/images => public/map-images}/dot-large-blue.png (100%) rename {p3k/map/images => public/map-images}/dot-large-gray.png (100%) rename {p3k/map/images => public/map-images}/dot-large-green.png (100%) rename {p3k/map/images => public/map-images}/dot-large-orange.png (100%) rename {p3k/map/images => public/map-images}/dot-large-pink.png (100%) rename {p3k/map/images => public/map-images}/dot-large-purple.png (100%) rename {p3k/map/images => public/map-images}/dot-large-red.png (100%) rename {p3k/map/images => public/map-images}/dot-large-yellow.png (100%) rename {p3k/map/images => public/map-images}/dot-small-blue.png (100%) rename {p3k/map/images => public/map-images}/dot-small-gray.png (100%) rename {p3k/map/images => public/map-images}/dot-small-green.png (100%) rename {p3k/map/images => public/map-images}/dot-small-orange.png (100%) rename {p3k/map/images => public/map-images}/dot-small-pink.png (100%) rename {p3k/map/images => public/map-images}/dot-small-purple.png (100%) rename {p3k/map/images => public/map-images}/dot-small-red.png (100%) rename {p3k/map/images => public/map-images}/dot-small-yellow.png (100%) rename {p3k/map/images => public/map-images}/fb.png (100%) rename {p3k/map/images => public/map-images}/google.png (100%) rename {p3k/map/images => public/map-images}/large-blue-blank.png (100%) rename {p3k/map/images => public/map-images}/large-blue-cutout.png (100%) rename {p3k/map/images => public/map-images}/large-gray-blank.png (100%) rename {p3k/map/images => public/map-images}/large-gray-cutout.png (100%) rename {p3k/map/images => public/map-images}/large-gray-user.png (100%) rename {p3k/map/images => public/map-images}/large-green-blank.png (100%) rename {p3k/map/images => public/map-images}/large-green-cutout.png (100%) rename {p3k/map/images => public/map-images}/large-orange-blank.png (100%) rename {p3k/map/images => public/map-images}/large-orange-cutout.png (100%) rename {p3k/map/images => public/map-images}/large-pink-blank.png (100%) rename {p3k/map/images => public/map-images}/large-pink-cutout.png (100%) rename {p3k/map/images => public/map-images}/large-purple-blank.png (100%) rename {p3k/map/images => public/map-images}/large-purple-cutout.png (100%) rename {p3k/map/images => public/map-images}/large-red-blank.png (100%) rename {p3k/map/images => public/map-images}/large-red-cutout.png (100%) rename {p3k/map/images => public/map-images}/large-yellow-blank.png (100%) rename {p3k/map/images => public/map-images}/large-yellow-cutout.png (100%) rename {p3k/map/images => public/map-images}/large-yellow-message.png (100%) rename {p3k/map/images => public/map-images}/large-yellow-user.png (100%) rename {p3k/map/images => public/map-images}/mapbox-attribution.png (100%) rename {p3k/map/images => public/map-images}/mapbox-attribution.psd (100%) rename {p3k/map/images => public/map-images}/powered-by-esri.png (100%) rename {p3k/map/images => public/map-images}/powered-by-esri.psd (100%) rename {p3k/map/images => public/map-images}/small-blue-blank.png (100%) rename {p3k/map/images => public/map-images}/small-blue-cutout.png (100%) rename {p3k/map/images => public/map-images}/small-gray-blank.png (100%) rename {p3k/map/images => public/map-images}/small-gray-cutout.png (100%) rename {p3k/map/images => public/map-images}/small-gray-message.png (100%) rename {p3k/map/images => public/map-images}/small-gray-user.png (100%) rename {p3k/map/images => public/map-images}/small-green-blank.png (100%) rename {p3k/map/images => public/map-images}/small-green-cutout.png (100%) rename {p3k/map/images => public/map-images}/small-green-user.png (100%) rename {p3k/map/images => public/map-images}/small-orange-blank.png (100%) rename {p3k/map/images => public/map-images}/small-orange-cutout.png (100%) rename {p3k/map/images => public/map-images}/small-pink-blank.png (100%) rename {p3k/map/images => public/map-images}/small-pink-cutout.png (100%) rename {p3k/map/images => public/map-images}/small-pink-user.png (100%) rename {p3k/map/images => public/map-images}/small-purple-blank.png (100%) rename {p3k/map/images => public/map-images}/small-purple-cutout.png (100%) rename {p3k/map/images => public/map-images}/small-red-blank.png (100%) rename {p3k/map/images => public/map-images}/small-red-cutout.png (100%) rename {p3k/map/images => public/map-images}/small-yellow-blank.png (100%) rename {p3k/map/images => public/map-images}/small-yellow-cutout.png (100%) rename {p3k/map/images => public/map-images}/small-yellow-user.png (100%) diff --git a/controllers/main.php b/controllers/main.php index c1f231a..78f1c01 100644 --- a/controllers/main.php +++ b/controllers/main.php @@ -12,6 +12,6 @@ $app->get('/map', function() use($app) { $app->map('/map/img', function() use($app) { $params = $app->request()->params(); $app->response['Content-type'] = 'image/png'; - $assetPath = dirname(__FILE__) . '/../p3k/map/images'; + $assetPath = dirname(__FILE__) . '/../public/map-images'; $map = p3k\geo\StaticMap\generate($params, null, $assetPath); })->via('GET','POST'); diff --git a/p3k/map/images/dot-large-blue.png b/public/map-images/dot-large-blue.png similarity index 100% rename from p3k/map/images/dot-large-blue.png rename to public/map-images/dot-large-blue.png diff --git a/p3k/map/images/dot-large-gray.png b/public/map-images/dot-large-gray.png similarity index 100% rename from p3k/map/images/dot-large-gray.png rename to public/map-images/dot-large-gray.png diff --git a/p3k/map/images/dot-large-green.png b/public/map-images/dot-large-green.png similarity index 100% rename from p3k/map/images/dot-large-green.png rename to public/map-images/dot-large-green.png diff --git a/p3k/map/images/dot-large-orange.png b/public/map-images/dot-large-orange.png similarity index 100% rename from p3k/map/images/dot-large-orange.png rename to public/map-images/dot-large-orange.png diff --git a/p3k/map/images/dot-large-pink.png b/public/map-images/dot-large-pink.png similarity index 100% rename from p3k/map/images/dot-large-pink.png rename to public/map-images/dot-large-pink.png diff --git a/p3k/map/images/dot-large-purple.png b/public/map-images/dot-large-purple.png similarity index 100% rename from p3k/map/images/dot-large-purple.png rename to public/map-images/dot-large-purple.png diff --git a/p3k/map/images/dot-large-red.png b/public/map-images/dot-large-red.png similarity index 100% rename from p3k/map/images/dot-large-red.png rename to public/map-images/dot-large-red.png diff --git a/p3k/map/images/dot-large-yellow.png b/public/map-images/dot-large-yellow.png similarity index 100% rename from p3k/map/images/dot-large-yellow.png rename to public/map-images/dot-large-yellow.png diff --git a/p3k/map/images/dot-small-blue.png b/public/map-images/dot-small-blue.png similarity index 100% rename from p3k/map/images/dot-small-blue.png rename to public/map-images/dot-small-blue.png diff --git a/p3k/map/images/dot-small-gray.png b/public/map-images/dot-small-gray.png similarity index 100% rename from p3k/map/images/dot-small-gray.png rename to public/map-images/dot-small-gray.png diff --git a/p3k/map/images/dot-small-green.png b/public/map-images/dot-small-green.png similarity index 100% rename from p3k/map/images/dot-small-green.png rename to public/map-images/dot-small-green.png diff --git a/p3k/map/images/dot-small-orange.png b/public/map-images/dot-small-orange.png similarity index 100% rename from p3k/map/images/dot-small-orange.png rename to public/map-images/dot-small-orange.png diff --git a/p3k/map/images/dot-small-pink.png b/public/map-images/dot-small-pink.png similarity index 100% rename from p3k/map/images/dot-small-pink.png rename to public/map-images/dot-small-pink.png diff --git a/p3k/map/images/dot-small-purple.png b/public/map-images/dot-small-purple.png similarity index 100% rename from p3k/map/images/dot-small-purple.png rename to public/map-images/dot-small-purple.png diff --git a/p3k/map/images/dot-small-red.png b/public/map-images/dot-small-red.png similarity index 100% rename from p3k/map/images/dot-small-red.png rename to public/map-images/dot-small-red.png diff --git a/p3k/map/images/dot-small-yellow.png b/public/map-images/dot-small-yellow.png similarity index 100% rename from p3k/map/images/dot-small-yellow.png rename to public/map-images/dot-small-yellow.png diff --git a/p3k/map/images/fb.png b/public/map-images/fb.png similarity index 100% rename from p3k/map/images/fb.png rename to public/map-images/fb.png diff --git a/p3k/map/images/google.png b/public/map-images/google.png similarity index 100% rename from p3k/map/images/google.png rename to public/map-images/google.png diff --git a/p3k/map/images/large-blue-blank.png b/public/map-images/large-blue-blank.png similarity index 100% rename from p3k/map/images/large-blue-blank.png rename to public/map-images/large-blue-blank.png diff --git a/p3k/map/images/large-blue-cutout.png b/public/map-images/large-blue-cutout.png similarity index 100% rename from p3k/map/images/large-blue-cutout.png rename to public/map-images/large-blue-cutout.png diff --git a/p3k/map/images/large-gray-blank.png b/public/map-images/large-gray-blank.png similarity index 100% rename from p3k/map/images/large-gray-blank.png rename to public/map-images/large-gray-blank.png diff --git a/p3k/map/images/large-gray-cutout.png b/public/map-images/large-gray-cutout.png similarity index 100% rename from p3k/map/images/large-gray-cutout.png rename to public/map-images/large-gray-cutout.png diff --git a/p3k/map/images/large-gray-user.png b/public/map-images/large-gray-user.png similarity index 100% rename from p3k/map/images/large-gray-user.png rename to public/map-images/large-gray-user.png diff --git a/p3k/map/images/large-green-blank.png b/public/map-images/large-green-blank.png similarity index 100% rename from p3k/map/images/large-green-blank.png rename to public/map-images/large-green-blank.png diff --git a/p3k/map/images/large-green-cutout.png b/public/map-images/large-green-cutout.png similarity index 100% rename from p3k/map/images/large-green-cutout.png rename to public/map-images/large-green-cutout.png diff --git a/p3k/map/images/large-orange-blank.png b/public/map-images/large-orange-blank.png similarity index 100% rename from p3k/map/images/large-orange-blank.png rename to public/map-images/large-orange-blank.png diff --git a/p3k/map/images/large-orange-cutout.png b/public/map-images/large-orange-cutout.png similarity index 100% rename from p3k/map/images/large-orange-cutout.png rename to public/map-images/large-orange-cutout.png diff --git a/p3k/map/images/large-pink-blank.png b/public/map-images/large-pink-blank.png similarity index 100% rename from p3k/map/images/large-pink-blank.png rename to public/map-images/large-pink-blank.png diff --git a/p3k/map/images/large-pink-cutout.png b/public/map-images/large-pink-cutout.png similarity index 100% rename from p3k/map/images/large-pink-cutout.png rename to public/map-images/large-pink-cutout.png diff --git a/p3k/map/images/large-purple-blank.png b/public/map-images/large-purple-blank.png similarity index 100% rename from p3k/map/images/large-purple-blank.png rename to public/map-images/large-purple-blank.png diff --git a/p3k/map/images/large-purple-cutout.png b/public/map-images/large-purple-cutout.png similarity index 100% rename from p3k/map/images/large-purple-cutout.png rename to public/map-images/large-purple-cutout.png diff --git a/p3k/map/images/large-red-blank.png b/public/map-images/large-red-blank.png similarity index 100% rename from p3k/map/images/large-red-blank.png rename to public/map-images/large-red-blank.png diff --git a/p3k/map/images/large-red-cutout.png b/public/map-images/large-red-cutout.png similarity index 100% rename from p3k/map/images/large-red-cutout.png rename to public/map-images/large-red-cutout.png diff --git a/p3k/map/images/large-yellow-blank.png b/public/map-images/large-yellow-blank.png similarity index 100% rename from p3k/map/images/large-yellow-blank.png rename to public/map-images/large-yellow-blank.png diff --git a/p3k/map/images/large-yellow-cutout.png b/public/map-images/large-yellow-cutout.png similarity index 100% rename from p3k/map/images/large-yellow-cutout.png rename to public/map-images/large-yellow-cutout.png diff --git a/p3k/map/images/large-yellow-message.png b/public/map-images/large-yellow-message.png similarity index 100% rename from p3k/map/images/large-yellow-message.png rename to public/map-images/large-yellow-message.png diff --git a/p3k/map/images/large-yellow-user.png b/public/map-images/large-yellow-user.png similarity index 100% rename from p3k/map/images/large-yellow-user.png rename to public/map-images/large-yellow-user.png diff --git a/p3k/map/images/mapbox-attribution.png b/public/map-images/mapbox-attribution.png similarity index 100% rename from p3k/map/images/mapbox-attribution.png rename to public/map-images/mapbox-attribution.png diff --git a/p3k/map/images/mapbox-attribution.psd b/public/map-images/mapbox-attribution.psd similarity index 100% rename from p3k/map/images/mapbox-attribution.psd rename to public/map-images/mapbox-attribution.psd diff --git a/p3k/map/images/powered-by-esri.png b/public/map-images/powered-by-esri.png similarity index 100% rename from p3k/map/images/powered-by-esri.png rename to public/map-images/powered-by-esri.png diff --git a/p3k/map/images/powered-by-esri.psd b/public/map-images/powered-by-esri.psd similarity index 100% rename from p3k/map/images/powered-by-esri.psd rename to public/map-images/powered-by-esri.psd diff --git a/p3k/map/images/small-blue-blank.png b/public/map-images/small-blue-blank.png similarity index 100% rename from p3k/map/images/small-blue-blank.png rename to public/map-images/small-blue-blank.png diff --git a/p3k/map/images/small-blue-cutout.png b/public/map-images/small-blue-cutout.png similarity index 100% rename from p3k/map/images/small-blue-cutout.png rename to public/map-images/small-blue-cutout.png diff --git a/p3k/map/images/small-gray-blank.png b/public/map-images/small-gray-blank.png similarity index 100% rename from p3k/map/images/small-gray-blank.png rename to public/map-images/small-gray-blank.png diff --git a/p3k/map/images/small-gray-cutout.png b/public/map-images/small-gray-cutout.png similarity index 100% rename from p3k/map/images/small-gray-cutout.png rename to public/map-images/small-gray-cutout.png diff --git a/p3k/map/images/small-gray-message.png b/public/map-images/small-gray-message.png similarity index 100% rename from p3k/map/images/small-gray-message.png rename to public/map-images/small-gray-message.png diff --git a/p3k/map/images/small-gray-user.png b/public/map-images/small-gray-user.png similarity index 100% rename from p3k/map/images/small-gray-user.png rename to public/map-images/small-gray-user.png diff --git a/p3k/map/images/small-green-blank.png b/public/map-images/small-green-blank.png similarity index 100% rename from p3k/map/images/small-green-blank.png rename to public/map-images/small-green-blank.png diff --git a/p3k/map/images/small-green-cutout.png b/public/map-images/small-green-cutout.png similarity index 100% rename from p3k/map/images/small-green-cutout.png rename to public/map-images/small-green-cutout.png diff --git a/p3k/map/images/small-green-user.png b/public/map-images/small-green-user.png similarity index 100% rename from p3k/map/images/small-green-user.png rename to public/map-images/small-green-user.png diff --git a/p3k/map/images/small-orange-blank.png b/public/map-images/small-orange-blank.png similarity index 100% rename from p3k/map/images/small-orange-blank.png rename to public/map-images/small-orange-blank.png diff --git a/p3k/map/images/small-orange-cutout.png b/public/map-images/small-orange-cutout.png similarity index 100% rename from p3k/map/images/small-orange-cutout.png rename to public/map-images/small-orange-cutout.png diff --git a/p3k/map/images/small-pink-blank.png b/public/map-images/small-pink-blank.png similarity index 100% rename from p3k/map/images/small-pink-blank.png rename to public/map-images/small-pink-blank.png diff --git a/p3k/map/images/small-pink-cutout.png b/public/map-images/small-pink-cutout.png similarity index 100% rename from p3k/map/images/small-pink-cutout.png rename to public/map-images/small-pink-cutout.png diff --git a/p3k/map/images/small-pink-user.png b/public/map-images/small-pink-user.png similarity index 100% rename from p3k/map/images/small-pink-user.png rename to public/map-images/small-pink-user.png diff --git a/p3k/map/images/small-purple-blank.png b/public/map-images/small-purple-blank.png similarity index 100% rename from p3k/map/images/small-purple-blank.png rename to public/map-images/small-purple-blank.png diff --git a/p3k/map/images/small-purple-cutout.png b/public/map-images/small-purple-cutout.png similarity index 100% rename from p3k/map/images/small-purple-cutout.png rename to public/map-images/small-purple-cutout.png diff --git a/p3k/map/images/small-red-blank.png b/public/map-images/small-red-blank.png similarity index 100% rename from p3k/map/images/small-red-blank.png rename to public/map-images/small-red-blank.png diff --git a/p3k/map/images/small-red-cutout.png b/public/map-images/small-red-cutout.png similarity index 100% rename from p3k/map/images/small-red-cutout.png rename to public/map-images/small-red-cutout.png diff --git a/p3k/map/images/small-yellow-blank.png b/public/map-images/small-yellow-blank.png similarity index 100% rename from p3k/map/images/small-yellow-blank.png rename to public/map-images/small-yellow-blank.png diff --git a/p3k/map/images/small-yellow-cutout.png b/public/map-images/small-yellow-cutout.png similarity index 100% rename from p3k/map/images/small-yellow-cutout.png rename to public/map-images/small-yellow-cutout.png diff --git a/p3k/map/images/small-yellow-user.png b/public/map-images/small-yellow-user.png similarity index 100% rename from p3k/map/images/small-yellow-user.png rename to public/map-images/small-yellow-user.png